mirror of
https://github.com/ceph/ceph
synced 2025-02-24 19:47:44 +00:00
rgw: fix user anonymous permissions
This commit is contained in:
parent
4c798752c6
commit
c863f52245
@ -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;
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user