From a4fbf27519f9004f5fa15e0c32e96ba5b189784a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 1 Feb 2016 00:00:21 +0100 Subject: [PATCH] fix bug when using isGrantedForElement with ModifierInstance with a Role --- Export/ExportManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Export/ExportManager.php b/Export/ExportManager.php index 5f2d0009f..ace1580fa 100644 --- a/Export/ExportManager.php +++ b/Export/ExportManager.php @@ -324,6 +324,8 @@ class ExportManager } else { $role = $export->requiredRole(); } + } else { + $role = $element->addRole(); } } else { throw new \LogicException("The element is not an ModifiersInterface or "