1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

minor fixes

This commit is contained in:
David Bomba 2021-11-27 20:25:27 +11:00
parent 08d2250ca8
commit 7376702748

View File

@ -75,7 +75,7 @@ trait UserNotifies
private function addSpecialUserPermissionForEntity($entity, array $required_permissions) :array private function addSpecialUserPermissionForEntity($entity, array $required_permissions) :array
{ {
array_push($required_permissions, ["all_notifications"]); array_merge($required_permissions, ["all_notifications"]);
switch ($entity) { 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) case ($entity instanceof Payment || $entity instanceof Client): //we pass client also as this is the proxy for Payment Failures (ie, there is no payment)