diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-10-15 10:20:48 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-10-15 15:05:11 -0700 |
commit | 7d99940467019bda74da83f3f1ebc2da46bd6967 (patch) | |
tree | 043f702d21ec70bac05fbcb65dd5bb4346420244 | |
parent | e5736de834027a281d29afcf6743347a8db97d26 (diff) | |
download | ceph-7d99940467019bda74da83f3f1ebc2da46bd6967.tar.gz |
rgw: fix authenticated users acl group check
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.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); } |