SubdefGroup is not array accessible.

Should use hasser to check whether a group exists or not.
This commit is contained in:
Benoît Burnichon
2016-03-14 17:28:42 +01:00
parent 6cda4eec7e
commit 1587164fe8

View File

@@ -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;
}