diff --git a/app/Utils/Traits/Notifications/UserNotifies.php b/app/Utils/Traits/Notifications/UserNotifies.php index 701c71d951..c60b174418 100644 --- a/app/Utils/Traits/Notifications/UserNotifies.php +++ b/app/Utils/Traits/Notifications/UserNotifies.php @@ -75,7 +75,7 @@ trait UserNotifies private function addSpecialUserPermissionForEntity($entity, array $required_permissions) :array { - array_push($required_permissions, ["all_notifications"]); + array_merge($required_permissions, ["all_notifications"]); switch ($entity) { case ($entity instanceof Payment || $entity instanceof Client): //we pass client also as this is the proxy for Payment Failures (ie, there is no payment)