Skip to content

Commit

Permalink
Use mongoose_graphql_directive instead of mongoose_graphql_permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Premwoik committed Jul 27, 2022
1 parent b5d178f commit c8c4fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 276 deletions.
4 changes: 2 additions & 2 deletions src/graphql/mongoose_graphql.erl
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ execute(Ep, #{document := Doc,
operation_name => OpName,
authorized => AuthStatus,
error_module => mongoose_graphql_errors},
ok = mongoose_graphql_permissions:check_permissions(Ctx2, Ast2),
{ok, graphql:execute(Ep, Ctx2, Ast2)}
Ast3 = mongoose_graphql_directive:process_directives(Ctx2, Ast2),
{ok, graphql:execute(Ep, Ctx2, Ast3)}
catch
throw:{error, Err} ->
{error, Err};
Expand Down
274 changes: 0 additions & 274 deletions src/graphql/mongoose_graphql_permissions.erl

This file was deleted.

0 comments on commit c8c4fee

Please sign in to comment.