Hi. I need some help in the context of 'feature fl...
# spicedb
j
Hi. I need some help in the context of 'feature flags' on an 'organization'. I basically want to ask the question
is the user member of organization_1, and does organization_1 have the feature flag 'projects' enabled?
I am very tempted to ask for
Copy code
definition project {
    relation org: organization
    permission view = org->can_view_projects & org->view
}
How to define
can_view_projects
on the org, if nested operators is not possible? Are there any relevant examples out there? Here is a link to my current model to see if I am thinking way off: https://play.authzed.com/s/X2IQcvw-CsoM/schema Thanks a lot, johan