Skip to content

Commit

Permalink
authorized user should be able to view datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed May 22, 2024
1 parent 09b77d9 commit 36a1cdc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions permissions_engine/authz.rego
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,11 @@ allow {
allow {
data.permissions.site_admin == true
}

# As long as the user is authorized, should be able to get their own datasets
allow {
input.path == ["v1", "data", "permissions", "datasets"]
input.method == "POST"
data.permissions.valid_token == true
input.body.input.token == input.identity
}

0 comments on commit 36a1cdc

Please sign in to comment.