Skip to content

Object-based permissions based on Tenant Group #5483

Answered by jeremystretch
billfehring asked this question in Q&A
Discussion options

You must be logged in to vote

You can access related objects using a dunder (double underscore). So for example, to match all objects assigned to a tenant within the tenant group "Customers", you could do {"tenant__group__name": "Customers"}.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@billfehring
Comment options

@proudbro
Comment options

Answer selected by billfehring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants