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 }