Message ID | 1366291244-5869-1-git-send-email-liwang@ubuntukylin.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index d2fbeeb..ef6448c 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -268,7 +268,7 @@ static int read_policy(RGWRados *store, struct req_state *s, RGWBucketInfo& buck return ret; string& owner = bucket_policy.get_owner().get_id(); if (owner.compare(s->user.user_id) != 0 && - !bucket_policy.verify_permission(s->user.user_id, s->perm_mask, RGW_PERM_READ)) + !bucket_policy.verify_permission(s->user.user_id, s->perm_mask, RGW_PERM_READ) && !bucket_policy.verify_permission(s->user.user_id, RGW_PERM_READ_OBJS, RGW_PERM_READ_OBJS)) ret = -EACCES; else ret = -ENOENT;