record_detail autoupdate

This commit is contained in:
masnn committed 2020-04-09 17:06:01 +08:00
1 parent 3a90e2893f
commit c68953c59f
17 files changed
+209 -278

No files matched your search

+3
View File
@@ -14,6 +14,9 @@ class USER {
this.salt = user.salt;
this.hash = user.hash;
this.perm = user.perm;
this.lang = user.language || 'zh_CN';
this.codeLang = user.codeLang || 'c';
this.codeTemplate = user.codeTemplate || '';
}
hasPerm(perm) {
return this.perm == '-' || (this.perm || '').includes(perm);