mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 21:28:40 +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
|
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