Skip to content

Commit

Permalink
now site admin can be calculated on authz.rego
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed May 22, 2024
1 parent cdde1c9 commit 09b77d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions permissions_engine/authz.rego
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ allow {
input.path == ["v1", "data", "service", "service-info"]
input.method == "GET"
}

# Site admin should be able to see anything
allow {
data.permissions.site_admin == true
}

0 comments on commit 09b77d9

Please sign in to comment.