Currently Bucket ACLs with IgnorePublicACLs were broken this should fix that
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
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)