Skip to content

Is it possible to add tuples with contextual tuples? #106

Answered by xXAvoraXx
xXAvoraXx asked this question in Q&A
Discussion options

You must be logged in to vote

I solved that problem like this.

type resource_access_group
  relations
    define parent_business: [business]
    define member: business_member from parent_business or owner_member from parent_business

type permission
  relations
    define associated_feature: [feature]
    define feature_access: feature_member from associated_feature
    define feature_owner_access: feature_owner_member from associated_feature
    define subscriber_business: subscriber_business from associated_feature
    
type permission_repo
  relations
    define associated_permission: [permission]

type permission_access
  relations
    define associated_permission: [permission]
    define associated_resource_acce…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by xXAvoraXx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested Core API Relating to the core OpenFGA service or API
1 participant
Converted from issue

This discussion was converted from issue #92 on February 06, 2023 18:51.