mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
PHRAS-508_acl-cache
- wip
This commit is contained in:
@@ -639,9 +639,9 @@ class SearchEngineOptions
|
||||
|
||||
$options->onCollections($bas);
|
||||
|
||||
if ($isAuthenticated && $acl->has_right('modifyrecord')) {
|
||||
if ($isAuthenticated && $acl->has_right(\ACL::CANMODIFRECORD)) {
|
||||
$bf = array_filter($bas, function (\collection $collection) use ($acl) {
|
||||
return $acl->has_right_on_base($collection->get_base_id(), 'canmodifrecord');
|
||||
return $acl->has_right_on_base($collection->get_base_id(), \ACL::CANMODIFRECORD);
|
||||
});
|
||||
|
||||
$options->allowBusinessFieldsOn($bf);
|
||||
|
Reference in New Issue
Block a user