Skip to content

Commit 2f2e742

Browse files
authored
Merge pull request #19 from fossapps/hotfix
fix(di): add args to requirePermission
2 parents daa9537 + 2fb2fa0 commit 2f2e742

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Micro.AppRegistration.Api/GraphQL/Directives/RequirePermissionDirective.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ public RequirePermissionDirective() : base(
1818
DirectiveLocation.Query,
1919
DirectiveLocation.FieldDefinition)
2020
{
21+
Description = "Used to check if a user has a set of permission";
22+
Arguments = new QueryArguments(new QueryArgument<NonNullGraphType<StringGraphType>>
23+
{
24+
Name = "permission",
25+
Description = "Permission to check for",
26+
});
2127
}
2228
}
2329
public class RequirePermissionDirectiveVisitor : BaseSchemaNodeVisitor

0 commit comments

Comments
 (0)