mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
优化domain.user存储结构
This commit is contained in:
1 parent
3eb593d134
commit
a93da2badb
17 files changed
+220
-239
No files matched your search
@@ -85,7 +85,7 @@ export const PERM = {
|
||||
PERM_ADMIN: '',
|
||||
};
|
||||
|
||||
export const Permission = (family, key, desc) => ({ family, key, desc });
|
||||
export const Permission = (family: string, key: string, desc: string) => ({ family, key, desc });
|
||||
|
||||
export const PERMS = [
|
||||
Permission('perm_general', PERM.PERM_VIEW, 'View this domain'),
|
||||
@@ -298,9 +298,9 @@ export const BUILTIN_USERS = [
|
||||
];
|
||||
|
||||
export const BUILTIN_ROLES = {
|
||||
guest: { perm: PERM.PERM_BASIC },
|
||||
default: { perm: PERM.PERM_DEFAULT },
|
||||
admin: { perm: PERM.PERM_ADMIN },
|
||||
guest: PERM.PERM_BASIC,
|
||||
default: PERM.PERM_DEFAULT,
|
||||
admin: PERM.PERM_ADMIN,
|
||||
};
|
||||
|
||||
export const DEFAULT_NODES = {
|
||||
|
||||
Reference in new issue
Block a user