Hi guys! I have a schema modeling question: Is the...
# spicedb
t
Hi guys! I have a schema modeling question: Is there a way to conditionally decide between 2 relations based on a third relation? For example, something like this:
Copy code
definition report {
    relation company: company
    relation module: module

    permission view = (module = "foo" & company->foo_permission) + (module = "bar" & company->bar_permission)
}
If the report belongs to a given module, then I want to check a company relation associated to that module