mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
rgw: Fix IgnorePublicACLs for bucket ACLs
Currently Bucket ACLs with IgnorePublicACLs were broken this should fix that Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
This commit is contained in:
parent
ff5cadbe8f
commit
e97b7d6426
@ -1198,8 +1198,10 @@ bool verify_bucket_permission_no_policy(const DoutPrefixProvider* dpp, struct pe
|
||||
if ((perm & (int)s->perm_mask) != perm)
|
||||
return false;
|
||||
|
||||
if (bucket_acl->verify_permission(dpp, *s->identity, perm, perm,
|
||||
s->get_referer()))
|
||||
if (bucket_acl->verify_permission(dpp, *s->auth.identity, perm, perm,
|
||||
s->info.env->get("HTTP_REFERER"),
|
||||
s->bucket_access_conf &&
|
||||
s->bucket_access_conf->ignore_public_acls()))
|
||||
return true;
|
||||
|
||||
if (!user_acl)
|
||||
|
Loading…
Reference in New Issue
Block a user