fix guest priv

v1.18.x
barisusakli 11 years ago
parent efdd795084
commit 7e82d3d9a5

@ -95,7 +95,7 @@ function isGuestAllowedTo(privilege, cids, callback) {
for (var i = 0; i<cids.length; ++i) {
var groupPriv = (privilege === 'find' || privilege === 'read') ?
(!results.groupPrivilegeExists[i] || results.hasGroupPrivilege[i] !== false) :
(results.groupPrivilegeExists[i] || results.hasGroupPrivilege[i] === true);
(results.groupPrivilegeExists[i] && results.hasGroupPrivilege[i] === true);
result.push(!results.userPrivilegeExists[i] && groupPriv);
}

Loading…
Cancel
Save