mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
bug fix
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -326,7 +326,7 @@ class DomainJoinHandler extends Handler {
|
||||
async prepare({ domainId }, target: string = domainId) {
|
||||
const [ddoc, dudoc] = await Promise.all([
|
||||
domain.get(target),
|
||||
domain.collUser.findOne({ domainId, uid: this.user._id }),
|
||||
domain.collUser.findOne({ domainId: target, uid: this.user._id }),
|
||||
]);
|
||||
const assignedRole = this.user.hasPriv(PRIV.PRIV_MANAGE_ALL_DOMAIN)
|
||||
? 'root'
|
||||
|
||||
Reference in new issue
Block a user