~bigbes/core-go

d5f650dadb54fc9436013f6291f272907f9e48d3 — Simon Ser 4 years ago f9c34fc
Allow AUTH_COOKIE to access @private fields
1 files changed, 1 insertions(+), 1 deletions(-)

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