Last active
January 18, 2020 13:06
-
-
Save sscarduzio/ca5374c0477c80a28054b7c932c09d5e to your computer and use it in GitHub Desktop.
ROR ACL Examples: document level security
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
readonlyrest: | |
access_control_rules: | |
- name: "Never return secret documents!" | |
filter: '{"bool": | |
{"must_not": | |
{"match": {"is_secret": true}} | |
}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment