Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyingsilverfin/6be6c56f90635d5aa857d4979a78345c to your computer and use it in GitHub Desktop.
Save flyingsilverfin/6be6c56f90635d5aa857d4979a78345c to your computer and use it in GitHub Desktop.
Rules in TypeDB blog: permission shortcut rules
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