Files
AstralRinth/apps/frontend/src/utils/permissions.ts
Evan Song abec2e48d4 Add TailwindCSS (#1252)
* Setup TailwindCSS

* Fully setup configuration

* Refactor some tailwind variables
2024-07-06 20:57:32 -07:00

5 lines
151 B
TypeScript

export const isPermission = (perms?: number, bitflag?: number) => {
if (!perms || !bitflag) return false;
return (perms & bitflag) === bitflag;
};