mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
PHRAS-508_acl-cache
- wip
This commit is contained in:
@@ -73,6 +73,6 @@ class eventsmanager_notify_autoregister extends eventsmanager_notifyAbstract
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->app->getAclForUser($user)->has_right('manageusers');
|
||||
return $this->app->getAclForUser($user)->has_right(\ACL::CANADMIN);
|
||||
}
|
||||
}
|
||||
|
@@ -75,6 +75,6 @@ class eventsmanager_notify_order extends eventsmanager_notifyAbstract
|
||||
*/
|
||||
public function is_available(User $user)
|
||||
{
|
||||
return $this->app->getAclForUser($user)->has_right('order_master');
|
||||
return $this->app->getAclForUser($user)->has_right(\ACL::ORDER_MASTER);
|
||||
}
|
||||
}
|
||||
|
@@ -75,6 +75,6 @@ class eventsmanager_notify_register extends eventsmanager_notifyAbstract
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->app->getAclForUser($user)->has_right('manageusers');
|
||||
return $this->app->getAclForUser($user)->has_right(\ACL::CANADMIN);
|
||||
}
|
||||
}
|
||||
|
@@ -75,6 +75,6 @@ class eventsmanager_notify_uploadquarantine extends eventsmanager_notifyAbstract
|
||||
*/
|
||||
public function is_available(User $user)
|
||||
{
|
||||
return $this->app->getAclForUser($user)->has_right('addrecord');
|
||||
return $this->app->getAclForUser($user)->has_right(\ACL::CANADDRECORD);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user