Last active
December 8, 2022 10:44
-
-
Save flyingsilverfin/6be6c56f90635d5aa857d4979a78345c to your computer and use it in GitHub Desktop.
Rules in TypeDB blog: permission shortcut rules
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 permission-write-read: | |
when { $access isa write-access; } | |
then { $access has permission "read"; }; | |
rule permission-read: | |
when { $access isa read-access; } | |
then { $access has permission "read"; }; | |
rule permission-write: | |
when { $access isa write-access; } | |
then { $access has permission "write"; }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment