Fix namespace bug in auth wrapper

This commit is contained in:
Ben Toogood 2020-04-03 13:03:27 +01:00
parent a9c0e043d2
commit 1374a9e528

View File

@ -182,7 +182,7 @@ func AuthHandler(fn func() auth.Auth) server.HandlerWrapper {
// Inspect the token and get the account
account, err := a.Inspect(token)
if err != nil {
account = &auth.Account{Namespace: auth.DefaultNamespace}
account = &auth.Account{Namespace: namespace}
}
// Check the accounts namespace matches the namespace we're operating