From 054fafadbf1e5519f4a87b089e956f614a6a37bd Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Fri, 2 Dec 2016 16:28:36 +0100 Subject: [PATCH] rgw: make RGWLocalAuthApplier::is_admin_of() aware about system users. Fixes: http://tracker.ceph.com/issues/18106 Signed-off-by: Radoslaw Zarzynski --- src/rgw/rgw_auth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3