Add mutli-tenancy support to the registry
This commit is contained in:
@@ -276,7 +276,9 @@ func AuthHandler(fn func() auth.Auth) server.HandlerWrapper {
|
||||
}
|
||||
|
||||
// There is an account, set it in the context
|
||||
ctx = auth.ContextWithAccount(ctx, account)
|
||||
if len(account.ID) > 0 {
|
||||
ctx = auth.ContextWithAccount(ctx, account)
|
||||
}
|
||||
|
||||
// The user is authorised, allow the call
|
||||
return h(ctx, req, rsp)
|
||||
|
Reference in New Issue
Block a user