You've already forked AstralRinth
forked from didirus/AstralRinth
Migrate to Turborepo (#1251)
This commit is contained in:
4
apps/frontend/src/utils/permissions.ts
Normal file
4
apps/frontend/src/utils/permissions.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const isPermission = (perms?: number, bitflag?: number) => {
|
||||
if (!perms || !bitflag) return false
|
||||
return (perms & bitflag) === bitflag
|
||||
}
|
||||
Reference in New Issue
Block a user