1
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/core-go synced 2024-09-09 11:42:36 +02:00

server/directives: disambiguate AnonInternal error message

AUTH_INTERNAL won't work with AnonInternal.
This commit is contained in:
Simon Ser 2024-01-09 11:49:19 +01:00
parent 53966da2d8
commit 453dcaefd6

View file

@ -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)