mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
错误修复
This commit is contained in:
1 parent
fff2172c38
commit
257d9814a9
15 files changed
+57
-63
No files matched your search
@@ -38,6 +38,10 @@ class USER {
|
||||
}
|
||||
|
||||
async function getPerm(domainId, udoc) {
|
||||
if (udoc._id === 1) { // Is Guest
|
||||
const p = await document.get(domainId, document.TYPE_DOMAIN_ROLE, 'guest');
|
||||
return p.content;
|
||||
}
|
||||
if (udoc.priv === 1) {
|
||||
const p = await document.get(domainId, document.TYPE_DOMAIN_ROLE, 'admin');
|
||||
return p.content;
|
||||
|
||||
Reference in new issue
Block a user