~bigbes/core-go

52d6dc99ff2da4a7907b38e511c0a6b87db1f9cf — Drew DeVault 5 years ago 7be038e
Fix bug with internal authentication
1 files changed, 1 insertions(+), 2 deletions(-)

M server/directives.go
M server/directives.go => server/directives.go +1 -2
@@ 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" {