mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Use ACL service provider to get user's ACL
This commit is contained in:
@@ -207,7 +207,7 @@ class patch_320f implements patchInterface
|
||||
$app['EM']->flush();
|
||||
|
||||
} elseif ($pub_restrict == 1) {
|
||||
$collections = $user->ACL()->get_granted_base();
|
||||
$collections = $app['acl']->get($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