You've already forked AstralRinth
forked from didirus/AstralRinth
abec2e48d4
* Setup TailwindCSS * Fully setup configuration * Refactor some tailwind variables
5 lines
151 B
TypeScript
5 lines
151 B
TypeScript
export const isPermission = (perms?: number, bitflag?: number) => {
|
|
if (!perms || !bitflag) return false;
|
|
return (perms & bitflag) === bitflag;
|
|
};
|