summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-10-15 10:20:48 -0700
committerSage Weil <sage@inktank.com>2013-10-15 15:07:22 -0700
commit81b5086a3f35dbae5fec8dd40f58a4646d83b0a8 (patch)
tree510512e411dee7de2f5e51367492ac413d4c7165
parent14f6b749f9a5281c1be9ce686d0990be60cec391 (diff)
downloadceph-bobtail.tar.gz
rgw: fix authenticated users acl group checkbobtail
Fixes: #6553 Backport: bobtail, cuttlefish, dumpling Authenticated users group acl bit was not working correctly. Check to test whether user is anonymous was wrong. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com> (cherry picked from commit bebbd6cb7b71697b34b8f27652cabdc40c97a33b)
-rw-r--r--src/rgw/rgw_acl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_acl.cc b/src/rgw/rgw_acl.cc
index 1a906495879..45e98b44c8b 100644
--- a/src/rgw/rgw_acl.cc
+++ b/src/rgw/rgw_acl.cc
@@ -79,7 +79,7 @@ int RGWAccessControlPolicy::get_perm(string& id, int perm_mask) {
if ((perm & perm_mask) != perm_mask) {
perm |= acl.get_group_perm(ACL_GROUP_ALL_USERS, perm_mask);
- if (compare_group_name(id, ACL_GROUP_ALL_USERS) != 0) {
+ if (!compare_group_name(id, ACL_GROUP_ALL_USERS)) {
/* this is not the anonymous user */
perm |= acl.get_group_perm(ACL_GROUP_AUTHENTICATED_USERS, perm_mask);
}