Skip to content

Commit

Permalink
Add get_access rule
Browse files Browse the repository at this point in the history
  • Loading branch information
helamanl0424 authored Apr 2, 2024
1 parent 6cf5800 commit aea2e76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions samples/sample.krl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ ruleset sample_app {
pods:removeAgentAccess(event:attrs.get("resourceURL"), event:attrs.get("webID"))
}

rule get_access {
select when sample_app get_access
send_directive(pods:getAccess(event:attrs.get("resourceURL")))
}

rule grant_access {
select when sample_app grant_access
pods:grantAccess(event:attrs.get("resourceURL"))
Expand Down

0 comments on commit aea2e76

Please sign in to comment.