mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
+nginx.conf; update scratchpad
This commit is contained in:
1 parent
6ad41dc2ae
commit
2d5eef8d08
28 files changed
+206
-230
No files matched your search
+3
-3
@@ -43,7 +43,7 @@ export class User implements _User {
|
||||
|
||||
loginat: Date;
|
||||
|
||||
perm: bigint;
|
||||
perm: () => bigint;
|
||||
|
||||
role: string;
|
||||
|
||||
@@ -67,7 +67,7 @@ export class User implements _User {
|
||||
this.regip = () => udoc.regip;
|
||||
this.loginat = udoc.loginat;
|
||||
this.loginip = () => udoc.loginip;
|
||||
this.perm = dudoc.perm;
|
||||
this.perm = () => dudoc.perm;
|
||||
this.role = dudoc.role || 'default';
|
||||
|
||||
for (const key in setting.SETTINGS_BY_KEY) {
|
||||
@@ -86,7 +86,7 @@ export class User implements _User {
|
||||
}
|
||||
|
||||
hasPerm(p: bigint) {
|
||||
return (this.perm & p) === p;
|
||||
return (this.perm() & p) === p;
|
||||
}
|
||||
|
||||
hasPriv(p: number) {
|
||||
|
||||
Reference in new issue
Block a user