object: Pass namespace within context in ACL service #952
1 changed files with 1 additions and 0 deletions
|
@ -458,6 +458,7 @@ func (b Service) GetRange(request *objectV2.GetRangeRequest, stream object.GetOb
|
||||||
|
|
||||||
func requestContext(ctx context.Context, reqInfo RequestInfo) context.Context {
|
func requestContext(ctx context.Context, reqInfo RequestInfo) context.Context {
|
||||||
return context.WithValue(ctx, object.RequestContextKey, &object.RequestContext{
|
return context.WithValue(ctx, object.RequestContextKey, &object.RequestContext{
|
||||||
|
Namespace: reqInfo.ContainerNamespace(),
|
||||||
SenderKey: reqInfo.SenderKey(),
|
SenderKey: reqInfo.SenderKey(),
|
||||||
Role: reqInfo.RequestRole(),
|
Role: reqInfo.RequestRole(),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue