Commit c2b36979 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2736 Creating ACL during object creation

parent a8d31a3b
......@@ -133,10 +133,14 @@ class ACLsAssignmentDialog extends GenericDialog
function __construct($simplePlugin, &$attribute, $acl = NULL)
{
$isContainer = FALSE;
if (count(array_intersect(
$simplePlugin->attrs['objectClass'],
array('organizationalUnit', 'organization', 'domain', 'country', 'locality'))
)) {
if (isset($simplePlugin->attrs['objectClass'])) {
if (count(array_intersect(
$simplePlugin->attrs['objectClass'],
array('organizationalUnit', 'organization', 'domain', 'country', 'locality'))
)) {
$isContainer = TRUE;
}
} else {
$isContainer = TRUE;
}
$this->attribute = $attribute;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment