mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
添加PERM_NEVER & PRIV_NEVER
This commit is contained in:
1 parent
21c2bb95f0
commit
e1cfe1cf4d
5 files changed
+7
-7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user