mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Add AclAware Trait
This commit is contained in:
@@ -212,7 +212,7 @@ class patch_320alpha4b extends patchAbstract
|
||||
$app['orm.em']->flush();
|
||||
|
||||
} elseif ($pub_restrict == 1) {
|
||||
$collections = $app['acl']->get($user)->get_granted_base();
|
||||
$collections = $app->getAclForUser($user)->get_granted_base();
|
||||
$collection = array_shift($collections);
|
||||
if ( ! ($collection instanceof collection)) {
|
||||
foreach ($appbox->get_databoxes() as $databox) {
|
||||
|
Reference in New Issue
Block a user