Skip to content

Instantly share code, notes, and snippets.

@rschwabco
Created December 16, 2021 21:14
Show Gist options
  • Save rschwabco/d069c2b06ece1f39d1aa065bdd8e5381 to your computer and use it in GitHub Desktop.
Save rschwabco/d069c2b06ece1f39d1aa065bdd8e5381 to your computer and use it in GitHub Desktop.
package asertodemo.GET.api.protected
default allowed = false
allowed {
some index
input.user.attributes.roles[index] == "admin"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment