fix how user flags are checked
This commit is contained in:
parent
91951b97f4
commit
cd15266740
@ -9,4 +9,4 @@ import { UserFlag } from "@/app/types/user/user-flag";
|
||||
* @return whether the user has the flag
|
||||
*/
|
||||
export const hasFlag = (user: User, flag: UserFlag): boolean =>
|
||||
(user.flags & flag) != 0;
|
||||
(user.flags & flag) == flag;
|
||||
|
Loading…
x
Reference in New Issue
Block a user