We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9a8403 + a413adc commit 5402b3aCopy full SHA for 5402b3a
src/rgw/rgw_rest_swift.cc
@@ -2947,7 +2947,10 @@ int RGWHandler_REST_SWIFT::postauth_init(optional_yield y)
2947
&& s->user->get_id().id == RGW_USER_ANON_ID) {
2948
s->bucket_tenant = s->account_name;
2949
} else {
2950
- s->bucket_tenant = s->auth.identity->get_tenant();
+ /* tenant must be taken from request. Can't use auth.identity->get_tenant(),
2951
+ because there are cases when users from different tenant may be granted
2952
+ access via ACL to this bucket */
2953
+ s->bucket_tenant = s->user->get_tenant();
2954
}
2955
s->bucket_name = t->url_bucket;
2956
0 commit comments