Fix permission check NO_CI

This commit is contained in:
Dennis Eichhorn 2021-04-22 16:35:03 +02:00 committed by GitHub
parent f25cbe3a7a
commit 672ab973c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -378,7 +378,7 @@ class PermissionAbstract implements \JsonSerializable
*/ */
public function hasPermissionFlags(int $permission) : bool public function hasPermissionFlags(int $permission) : bool
{ {
return ($this->permission | $permission) === $this->permission; return ($this->permission & $permission) === $permission;
} }
/** /**