pdow
01/31/2023, 4:02 PMuser:*
- However, I also have a team
resource, so the full definition of direct_editor
is more like relation direct_editor: user | team#member
- I cannot seem to write a relation team#member:*
- the schema does not even accept relation feature_flag_enabled: user:* | team#member:*
- Pnly thing I managed to do so far is write a relationship to team:*
on feature_flag_enabled
Of course, when I check/lookup resources on behalf of a user, all is well. However, sometimes I need to check if a team has the editor
role on a given resource, which does not appear to work in this setup (the direct_editor relationships reference `team#member`while the feature flag references the teams themselves. Is there any way to solve this?