Created
November 28, 2022 15:55
-
-
Save flyingsilverfin/1ebc2840e84789cc6ba3f6b046cefc00 to your computer and use it in GitHub Desktop.
Rules in TypeDB blog: owners have write access rule
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
rule owners-have-write-access: | |
when { | |
(resource: $r, owner: $owner) isa resource-ownership; | |
} then { | |
(writer: $owner, writable: $r) isa write-access; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment