Last active
August 29, 2023 13:57
-
-
Save francium-lupe/e7ca9021e754cad84c1583b3431a5915 to your computer and use it in GitHub Desktop.
Polar 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actor User {} | |
# "admin" is a global role that applies to all vehicles | |
global { | |
roles = ["admin"]; | |
} | |
resource Vehicle { | |
permissions = ["security", "update", "updateAuthorizedUsers"]; | |
roles = ["admin", "manager", "booked-user"]; | |
"security" if "booked-user"; | |
"update" if "manager"; | |
"updateAuthorizedUsers" if "admin"; | |
"admin" if global "admin"; | |
"manager" if "admin"; | |
"driver" if "manager"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment