From a060ed0fe4bfba1f7fcb45cd19f2270c7fbb5956 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Fri, 24 Sep 2021 17:03:06 +0200 Subject: [PATCH] me stupid --- internal/gql/schema.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/gql/schema.go b/internal/gql/schema.go index 0681e5a..2760849 100644 --- a/internal/gql/schema.go +++ b/internal/gql/schema.go @@ -24,7 +24,7 @@ func GraphqlSchema() (graphql.Schema, error) { }, }, Resolve: func(p graphql.ResolveParams) (interface{}, error) { - if helper.IsAuthenticated(p.Context) { + if !helper.IsAuthenticated(p.Context) { return nil, s3errors.ErrNotAuthenticated } @@ -49,7 +49,7 @@ func GraphqlSchema() (graphql.Schema, error) { }, }, Resolve: func(p graphql.ResolveParams) (interface{}, error) { - if helper.IsAuthenticated(p.Context) { + if !helper.IsAuthenticated(p.Context) { return nil, s3errors.ErrNotAuthenticated } @@ -74,7 +74,7 @@ func GraphqlSchema() (graphql.Schema, error) { }, }, Resolve: func(p graphql.ResolveParams) (interface{}, error) { - if helper.IsAuthenticated(p.Context) { + if !helper.IsAuthenticated(p.Context) { return nil, s3errors.ErrNotAuthenticated } @@ -111,7 +111,7 @@ func GraphqlSchema() (graphql.Schema, error) { }, }, Resolve: func(p graphql.ResolveParams) (interface{}, error) { - if helper.IsAuthenticated(p.Context) { + if !helper.IsAuthenticated(p.Context) { return nil, s3errors.ErrNotAuthenticated } @@ -136,7 +136,7 @@ func GraphqlSchema() (graphql.Schema, error) { }, }, Resolve: func(p graphql.ResolveParams) (interface{}, error) { - if helper.IsAuthenticated(p.Context) { + if !helper.IsAuthenticated(p.Context) { return nil, s3errors.ErrNotAuthenticated } @@ -165,7 +165,7 @@ func GraphqlSchema() (graphql.Schema, error) { }, }, Resolve: func(p graphql.ResolveParams) (interface{}, error) { - if helper.IsAuthenticated(p.Context) { + if !helper.IsAuthenticated(p.Context) { return nil, s3errors.ErrNotAuthenticated } @@ -191,7 +191,7 @@ func GraphqlSchema() (graphql.Schema, error) { }, }, Resolve: func(p graphql.ResolveParams) (interface{}, error) { - if helper.IsAuthenticated(p.Context) { + if !helper.IsAuthenticated(p.Context) { return nil, s3errors.ErrNotAuthenticated } @@ -213,7 +213,7 @@ func GraphqlSchema() (graphql.Schema, error) { }, }, Resolve: func(p graphql.ResolveParams) (interface{}, error) { - if helper.IsAuthenticated(p.Context) { + if !helper.IsAuthenticated(p.Context) { return nil, s3errors.ErrNotAuthenticated }