Hello all ! I have a schema in which I have a re...
# spicedb
s
Hello all ! I have a schema in which I have a recursive relation : Parent I also have a relation "secured" that is partly calculated on that parent relation. the issue I have is when I get to the top item, that has no parent. is there a way to add a condition in the permission to not go further and ignore the permission check on that root item ? here is a schema definition conaitning the idea :
Copy code
definition workspace {
    relation parent: workspace
    permission secured = parent->secured & other_irrelevant_perm
    permission other_irrelevant_perm = <the other permission checked at each level>
}
is there a way to ignore the `parent->secured`if
parent
has no relations ?
2 Views