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:
@@ -400,7 +400,7 @@ class record_adapter implements record_Interface, cache_cacheableInterface
|
||||
if (isset($dstatus[$sbas_id])) {
|
||||
foreach ($dstatus[$sbas_id] as $n => $statbit) {
|
||||
if ($statbit['printable'] == '0' &&
|
||||
!$this->app['authentication']->getUser()->ACL()->has_right_on_base($this->base_id, 'chgstatus')) {
|
||||
!$this->app['acl']->get($this->app['authentication']->getUser())->has_right_on_base($this->base_id, 'chgstatus')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user