mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +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;
|
continue;
|
||||||
}
|
}
|
||||||
$label = $this->app->trans('prod::tools: document');
|
$label = $this->app->trans('prod::tools: document');
|
||||||
} elseif (isset($databoxSubdefs[$subdefName])) {
|
} elseif ($databoxSubdefs->hasSubdef($subdefName)) {
|
||||||
if (!$acl->has_access_to_subdef($record, $subdefName)) {
|
if (!$acl->has_access_to_subdef($record, $subdefName)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user