Files
AstralRinth/apps/frontend/src/utils/permissions.ts
2024-07-04 21:46:29 -07:00

5 lines
148 B
TypeScript

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