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:
parent
53966da2d8
commit
453dcaefd6
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue