Conviley
08/12/2025, 8:15 AMpermission view = ((viewer + organisation_wide_access->view) & organisation->view) + public_viewer + edit
to
permission view = (viewer + organisation_wide_access->view & organisation->view) + public_viewer + edit
It removed the set of parenthesis enclosing viewer + organisation_wide_access->view
That can't be correct right?yetitwo
08/12/2025, 3:14 PM+ and & are set operations, not bitwise or arithemetic operations, and those operations don't have operator precedence in the same way that arithmetic/bitwise operators do. the union and intersection here are read left-to-right by SpiceDB.Joey
08/12/2025, 3:24 PMJoey
08/12/2025, 3:24 PMConviley
08/12/2025, 4:39 PMConviley
08/12/2025, 4:41 PMyetitwo
08/12/2025, 5:17 PMConviley
08/12/2025, 5:19 PM