From d5f650dadb54fc9436013f6291f272907f9e48d3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 23 Nov 2021 17:56:01 +0000 Subject: [PATCH] Allow AUTH_COOKIE to access @private fields --- server/directives.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/directives.go b/server/directives.go index a6c8a11edec6eb371ce4f8afdaa846c3db63aa26..79573b152d20e3c165cc053075230eb1378c4200 100644 --- a/server/directives.go +++ b/server/directives.go @@ -34,7 +34,7 @@ func Private(ctx context.Context, obj interface{}, user := auth.ForContext(ctx) switch user.AuthMethod { - case auth.AUTH_INTERNAL: + case auth.AUTH_INTERNAL, auth.AUTH_COOKIE: return next(ctx) case auth.AUTH_OAUTH2: if user.BearerToken.ClientID != "" {