From 2a07ba2f39fb99ebff5f578585d38674c6e5b843 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 22 Apr 2021 16:44:31 +0200 Subject: [PATCH] Fix permission check NO_CI --- Account/PermissionAbstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**