Skip to content

Commit

Permalink
Merge pull request #60 from fossapps/hotfix
Browse files Browse the repository at this point in the history
fix(di): add args to requirePermission
  • Loading branch information
cyberhck committed Jun 26, 2021
2 parents 9d5dcdb + 34f8c74 commit c330738
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public RequirePermissionDirective() : base(
DirectiveLocation.Query,
DirectiveLocation.FieldDefinition)
{
Description = "Used to check if a user has a set of permission";
Arguments = new QueryArguments(new QueryArgument<NonNullGraphType<StringGraphType>>
{
Name = "permission",
Description = "Permission to check for",
});
}
}
public class RequirePermissionDirectiveVisitor : BaseSchemaNodeVisitor
Expand Down

0 comments on commit c330738

Please sign in to comment.