diff --git a/Account/PermissionAbstract.php b/Account/PermissionAbstract.php index 95bc28e51..852fdd5ee 100644 --- a/Account/PermissionAbstract.php +++ b/Account/PermissionAbstract.php @@ -414,7 +414,7 @@ class PermissionAbstract implements \JsonSerializable && ($type === null || $this->type === null || $this->type === $type) && ($element === null || $this->element === null || $this->element === $element) && ($component === null || $this->component === null || $this->component === $component) - && ($this->permission | $permission) === $this->permission); + && ($this->permission & $permission) === $permission); } /**