fix bug when using isGrantedForElement with ModifierInstance with a Role

This commit is contained in:
Julien Fastré 2016-02-01 00:00:21 +01:00
parent 70806408fd
commit a4fbf27519

View File

@ -324,6 +324,8 @@ class ExportManager
} else { } else {
$role = $export->requiredRole(); $role = $export->requiredRole();
} }
} else {
$role = $element->addRole();
} }
} else { } else {
throw new \LogicException("The element is not an ModifiersInterface or " throw new \LogicException("The element is not an ModifiersInterface or "