me stupid

This commit is contained in:
Djeeberjr 2021-09-24 17:03:06 +02:00
parent a35ce7c24b
commit a060ed0fe4

View File

@ -24,7 +24,7 @@ func GraphqlSchema() (graphql.Schema, error) {
}, },
}, },
Resolve: func(p graphql.ResolveParams) (interface{}, error) { Resolve: func(p graphql.ResolveParams) (interface{}, error) {
if helper.IsAuthenticated(p.Context) { if !helper.IsAuthenticated(p.Context) {
return nil, s3errors.ErrNotAuthenticated return nil, s3errors.ErrNotAuthenticated
} }
@ -49,7 +49,7 @@ func GraphqlSchema() (graphql.Schema, error) {
}, },
}, },
Resolve: func(p graphql.ResolveParams) (interface{}, error) { Resolve: func(p graphql.ResolveParams) (interface{}, error) {
if helper.IsAuthenticated(p.Context) { if !helper.IsAuthenticated(p.Context) {
return nil, s3errors.ErrNotAuthenticated return nil, s3errors.ErrNotAuthenticated
} }
@ -74,7 +74,7 @@ func GraphqlSchema() (graphql.Schema, error) {
}, },
}, },
Resolve: func(p graphql.ResolveParams) (interface{}, error) { Resolve: func(p graphql.ResolveParams) (interface{}, error) {
if helper.IsAuthenticated(p.Context) { if !helper.IsAuthenticated(p.Context) {
return nil, s3errors.ErrNotAuthenticated return nil, s3errors.ErrNotAuthenticated
} }
@ -111,7 +111,7 @@ func GraphqlSchema() (graphql.Schema, error) {
}, },
}, },
Resolve: func(p graphql.ResolveParams) (interface{}, error) { Resolve: func(p graphql.ResolveParams) (interface{}, error) {
if helper.IsAuthenticated(p.Context) { if !helper.IsAuthenticated(p.Context) {
return nil, s3errors.ErrNotAuthenticated return nil, s3errors.ErrNotAuthenticated
} }
@ -136,7 +136,7 @@ func GraphqlSchema() (graphql.Schema, error) {
}, },
}, },
Resolve: func(p graphql.ResolveParams) (interface{}, error) { Resolve: func(p graphql.ResolveParams) (interface{}, error) {
if helper.IsAuthenticated(p.Context) { if !helper.IsAuthenticated(p.Context) {
return nil, s3errors.ErrNotAuthenticated return nil, s3errors.ErrNotAuthenticated
} }
@ -165,7 +165,7 @@ func GraphqlSchema() (graphql.Schema, error) {
}, },
}, },
Resolve: func(p graphql.ResolveParams) (interface{}, error) { Resolve: func(p graphql.ResolveParams) (interface{}, error) {
if helper.IsAuthenticated(p.Context) { if !helper.IsAuthenticated(p.Context) {
return nil, s3errors.ErrNotAuthenticated return nil, s3errors.ErrNotAuthenticated
} }
@ -191,7 +191,7 @@ func GraphqlSchema() (graphql.Schema, error) {
}, },
}, },
Resolve: func(p graphql.ResolveParams) (interface{}, error) { Resolve: func(p graphql.ResolveParams) (interface{}, error) {
if helper.IsAuthenticated(p.Context) { if !helper.IsAuthenticated(p.Context) {
return nil, s3errors.ErrNotAuthenticated return nil, s3errors.ErrNotAuthenticated
} }
@ -213,7 +213,7 @@ func GraphqlSchema() (graphql.Schema, error) {
}, },
}, },
Resolve: func(p graphql.ResolveParams) (interface{}, error) { Resolve: func(p graphql.ResolveParams) (interface{}, error) {
if helper.IsAuthenticated(p.Context) { if !helper.IsAuthenticated(p.Context) {
return nil, s3errors.ErrNotAuthenticated return nil, s3errors.ErrNotAuthenticated
} }