mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
closes #2275
This commit is contained in:
@@ -115,7 +115,7 @@ function isGuestAllowedTo(privilege, cids, callback) {
|
||||
(!results.groupPrivilegeExists[i] || results.hasGroupPrivilege[i] !== false) :
|
||||
(results.groupPrivilegeExists[i] && results.hasGroupPrivilege[i] === true);
|
||||
|
||||
result.push(!results.userPrivilegeExists[i] && groupPriv);
|
||||
result.push((!results.userPrivilegeExists[i] && !results.groupPrivilegeExists[i]) || groupPriv);
|
||||
}
|
||||
|
||||
callback(null, result);
|
||||
|
||||
Reference in New Issue
Block a user