添加PERM_NEVER & PRIV_NEVER

This commit is contained in:
undefined committed 2020-09-26 20:43:34 +08:00
1 parent 21c2bb95f0
commit e1cfe1cf4d
5 files changed
+7 -7

No files matched your search

+3
View File
@@ -88,6 +88,8 @@ export const PERM = {
PERM_BASIC: 0n,
PERM_DEFAULT: 0n,
PERM_ADMIN: -1n,
PERM_NEVER: 1n << 59n,
};
export const Permission = (family: string, key: BigInt, desc: string) => ({ family, key, desc });
@@ -237,6 +239,7 @@ export const PRIV = {
PRIV_ALL: -1,
PRIV_DEFAULT: 0,
PRIV_NEVER: 1 << 20,
};
PRIV.PRIV_DEFAULT = PRIV.PRIV_USER_PROFILE