From: Pritha Srivastava Date: Mon, 19 Nov 2018 05:34:56 +0000 (+0530) Subject: rgw: Fixing user perm evaluation when no policy is supplied to a role. X-Git-Tag: v14.1.0~510^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f0d46d94c61b32f5840dc48b5b575ee59d3f0542;p=ceph.git rgw: Fixing user perm evaluation when no policy is supplied to a role. Signed-off-by: Pritha Srivastava --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index 849d25af1054..3fabc0686d95 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -1133,7 +1133,7 @@ bool verify_user_permission_no_policy(const DoutPrefixProvider* dpp, struct req_ const int perm) { /* S3 doesn't support account ACLs. */ - if (!user_acl) + if (s->user->type != TYPE_NONE && !user_acl) return true; if ((perm & (int)s->perm_mask) != perm)