diff --git a/server/directives.go b/server/directives.go index 5aa9488b77113caf413cb2bb02ff524deddc3bd8..4a95751e17c7869ba8f55776d4e1f01dff08a5b3 100644 --- a/server/directives.go +++ b/server/directives.go @@ -25,8 +25,7 @@ authctx := auth.ForContext(ctx) switch authctx.AuthMethod { - case auth.AUTH_INTERNAL: - case auth.AUTH_COOKIE: + case auth.AUTH_INTERNAL, auth.AUTH_COOKIE: return next(ctx) case auth.AUTH_OAUTH_LEGACY: if kind == "RO" {