From b48b9b78b4929b4db7104bff443edebc17eda76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 16 Nov 2019 21:40:23 +0100 Subject: [PATCH] Fixed exception in ElementPermissionListener. --- src/Security/EntityListeners/ElementPermissionListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/EntityListeners/ElementPermissionListener.php b/src/Security/EntityListeners/ElementPermissionListener.php index f19b88c2..e9ee92ff 100644 --- a/src/Security/EntityListeners/ElementPermissionListener.php +++ b/src/Security/EntityListeners/ElementPermissionListener.php @@ -189,7 +189,7 @@ class ElementPermissionListener //If the user is not allowed to edit or read this property, reset all values. if ((!$this->isGranted('read', $annotation, $element) - || !$this->isGranted('edit', $annotation->getReadOperationName(), $element))) { + || !$this->isGranted('edit', $annotation, $element))) { //Set value to old value, so that there a no change to this property if (isset($old_data[$property->getName()])) { $property->setValue($element, $old_data[$property->getName()]);