mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
SubdefGroup is not array accessible.
Should use hasser to check whether a group exists or not.
This commit is contained in:
@@ -68,7 +68,7 @@ class ToolsController extends Controller
|
||||
continue;
|
||||
}
|
||||
$label = $this->app->trans('prod::tools: document');
|
||||
} elseif (isset($databoxSubdefs[$subdefName])) {
|
||||
} elseif ($databoxSubdefs->hasSubdef($subdefName)) {
|
||||
if (!$acl->has_access_to_subdef($record, $subdefName)) {
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user