stinkbot.
03/06/2025, 1:23 AMdefinition user {}
definition tag {
relation user: user
permission allow = user
}
definition document {
relation tag: tag
permission view = tag.all(allow)
}
Is there any way to modify it so that the logic would be "either the user has all the tags assigned to the document OR the document has no tags"?
i.e., a version of the following that actuallly parses:
definition document {
relation tag: tag
permission view = tag.all(allow) | !tag
}