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:
Abhishek Lekshmanan 2019-10-08 15:18:35 +02:00
parent ff5cadbe8f
commit e97b7d6426

View File

@ -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)