From 4440260f8fc11d9ad153b07357565b0f4848cdcb Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 6 Nov 2014 17:06:58 -0500 Subject: [PATCH] closes #2275 --- src/privileges/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/privileges/helpers.js b/src/privileges/helpers.js index af9e47866f..ca119eec27 100644 --- a/src/privileges/helpers.js +++ b/src/privileges/helpers.js @@ -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);