diff options
author | Sage Weil <sage@inktank.com> | 2013-10-15 15:04:41 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-10-15 15:04:41 -0700 |
commit | 3b97b4166a8bde41cb48db9602d9ff4df0f5cafb (patch) | |
tree | 48f9a056979421ea0f5fc041ab2b9faa286dcc26 | |
parent | 8d7dbf85472cfca9268d81ecf057ea078cf345b3 (diff) | |
parent | bebbd6cb7b71697b34b8f27652cabdc40c97a33b (diff) | |
download | ceph-3b97b4166a8bde41cb48db9602d9ff4df0f5cafb.tar.gz |
Merge pull request #718 from ceph/wip-6553
rgw: fix authenticated users acl group check
Reviewed-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/rgw/rgw_acl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_acl.cc b/src/rgw/rgw_acl.cc index 3f99d72cd5b..02504524847 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); } |