PermissibleBase: fixed express denying of a root permission not working

this only took effect when a permission was applied as a root. When overridden with a permission attachment, the problem did not manifest.
This commit is contained in:
Dylan K. Taylor 2020-12-02 01:39:43 +00:00
parent f5bb5c1208
commit 13e8854ec0

View File

@ -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){