Verify Namespace

This commit is contained in:
Ben Toogood
2020-05-21 18:11:35 +01:00
parent 12061bd006
commit 1fce0f02b6
3 changed files with 15 additions and 4 deletions

View File

@@ -221,7 +221,7 @@ func AuthHandler(fn func() auth.Auth) server.HandlerWrapper {
}
// Verify the caller has access to the resource
err := a.Verify(account, res)
err := a.Verify(account, res, auth.VerifyNamespace(ns))
if err != nil && account != nil {
return errors.Forbidden(req.Service(), "Forbidden call made to %v:%v by %v", req.Service(), req.Endpoint(), account.ID)
} else if err != nil {