mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 05:20:24 +01:00
fix: missing await
This commit is contained in:
@@ -27,7 +27,7 @@ helpers.isUsersAllowedTo = async function (privilege, uids, cid) {
|
||||
}
|
||||
|
||||
let allowed;
|
||||
const masked = db.isSetMember(`cid:${cid}:privilegeMask`, privilege);
|
||||
const masked = await db.isSetMember(`cid:${cid}:privilegeMask`, privilege);
|
||||
if (!masked) {
|
||||
const [hasUserPrivilege, hasGroupPrivilege] = await Promise.all([
|
||||
groups.isMembers(uids, `cid:${cid}:privileges:${privilege}`),
|
||||
|
||||
Reference in New Issue
Block a user