mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
PHRAS-508_acl-cache
- wip
This commit is contained in:
@@ -24,7 +24,7 @@ class databox_status
|
||||
foreach ($app->getAclForUser($app->getAuthenticatedUser())->get_granted_sbas() as $databox) {
|
||||
$see_all = false;
|
||||
foreach ($databox->get_collections() as $collection) {
|
||||
if ($app->getAclForUser($app->getAuthenticatedUser())->has_right_on_base($collection->get_base_id(), 'chgstatus')) {
|
||||
if ($app->getAclForUser($app->getAuthenticatedUser())->has_right_on_base($collection->get_base_id(), \ACL::CHGSTATUS)) {
|
||||
$see_all = true;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user