diff --git a/src/rgw/rgw_acl.cc b/src/rgw/rgw_acl.cc index bb19076fb55..0189d347ead 100644 --- a/src/rgw/rgw_acl.cc +++ b/src/rgw/rgw_acl.cc @@ -404,7 +404,7 @@ int RGWAccessControlPolicy::get_perm(string& id, int perm_mask) { } } - RGW_LOG(5) << "Getting permissions id=" << id << " owner=" << owner << dendl; + RGW_LOG(5) << "Getting permissions id=" << id << " owner=" << owner << " perm=" << perm << dendl; return perm; } diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index ea5a7b3afd9..c209c99c2dc 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -579,6 +579,7 @@ bool RGWHandler_REST_S3::authorize(struct req_state *s) } else { /* anonymous access */ rgw_get_anon_user(s->user); + s->perm_mask = RGW_PERM_FULL_CONTROL; return true; } } else {