fix how user flags are checked

This commit is contained in:
Braydon 2024-09-19 10:01:27 -04:00
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;