From: Radoslaw Zarzynski Date: Fri, 2 Dec 2016 15:28:36 +0000 (+0100) Subject: rgw: make RGWLocalAuthApplier::is_admin_of() aware about system users. X-Git-Tag: v11.1.0~15^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=054fafadbf1e5519f4a87b089e956f614a6a37bd;p=ceph.git rgw: make RGWLocalAuthApplier::is_admin_of() aware about system users. Fixes: http://tracker.ceph.com/issues/18106 Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/rgw/rgw_auth.cc b/src/rgw/rgw_auth.cc index 4b5f784933c0..67ce77d89a1d 100644 --- a/src/rgw/rgw_auth.cc +++ b/src/rgw/rgw_auth.cc @@ -220,7 +220,7 @@ uint32_t RGWLocalAuthApplier::get_perms_from_aclspec(const aclspec_t& aclspec) c bool RGWLocalAuthApplier::is_admin_of(const rgw_user& uid) const { - return user_info.admin; + return user_info.admin || user_info.system; } bool RGWLocalAuthApplier::is_owner_of(const rgw_user& uid) const