From 453dcaefd647136c35550d1e5286f4ab366e02bf Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 9 Jan 2024 11:49:19 +0100 Subject: [PATCH] server/directives: disambiguate AnonInternal error message AUTH_INTERNAL won't work with AnonInternal. --- server/directives.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/directives.go b/server/directives.go index b0a968ee397ca212026c8a17d05ba89e13560996..b141a56311c1f51a69d66c15920f7fd76521bdef 100644 --- a/server/directives.go +++ b/server/directives.go @@ -13,7 +13,7 @@ func AnonInternal(ctx context.Context, obj interface{}, next graphql.Resolver) (interface{}, error) { if auth.ForContext(ctx).AuthMethod != auth.AUTH_ANON_INTERNAL { - return nil, fmt.Errorf("Internal auth access denied") + return nil, fmt.Errorf("Anonymous internal auth access denied") } return next(ctx)