From 52d6dc99ff2da4a7907b38e511c0a6b87db1f9cf Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 3 Dec 2020 08:33:17 -0500 Subject: [PATCH] Fix bug with internal authentication --- server/directives.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 @@ func Access(ctx context.Context, obj interface{}, next graphql.Resolver, 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" {