mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Fix permission check NO_CI
This commit is contained in:
parent
f25cbe3a7a
commit
672ab973c8
|
|
@ -378,7 +378,7 @@ class PermissionAbstract implements \JsonSerializable
|
|||
*/
|
||||
public function hasPermissionFlags(int $permission) : bool
|
||||
{
|
||||
return ($this->permission | $permission) === $this->permission;
|
||||
return ($this->permission & $permission) === $permission;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user