]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Fixing user perm evaluation when no policy is supplied to a role.
authorPritha Srivastava <prsrivas@redhat.com>
Mon, 19 Nov 2018 05:34:56 +0000 (11:04 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Fri, 30 Nov 2018 07:22:12 +0000 (12:52 +0530)
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
src/rgw/rgw_common.cc

index 849d25af1054680d12dbe74c2515388fe5902387..3fabc0686d95c35cfaa3055d4c349c3709f17835 100644 (file)
@@ -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)