v1.18.x
barisusakli 10 years ago
parent 1004fb2822
commit 4440260f8f

@ -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);

Loading…
Cancel
Save