diff --git a/src/permission/PermissibleBase.php b/src/permission/PermissibleBase.php index b65fcf78c..1907e469d 100644 --- a/src/permission/PermissibleBase.php +++ b/src/permission/PermissibleBase.php @@ -144,7 +144,7 @@ class PermissibleBase implements Permissible{ } $this->permissions[$name] = new PermissionAttachmentInfo($name, null, $isGranted); $permManager->subscribeToPermission($name, $this); - $this->calculateChildPermissions($perm->getChildren(), false, null); + $this->calculateChildPermissions($perm->getChildren(), !$isGranted, null); } foreach($this->attachments as $attachment){