How can I use Nova's Resource Index Query in combination with a Policy?
Hey there,
I have a problem that I think is somewhat of an edge case, but could be an interesting use case for some people. I have two models, programs and accounts. A program can have many accounts, and an account can belong to many programs.
My issue arises within Nova when dealing with policies and the indexQuery function for resources. I don't want users to be able to see views for accounts that are not associated with their program (in the index or detail), so I have an index query and policy. But when they go to attach an account to their program, I want all accounts to be available. How could I make this work?
Please or to participate in this conversation.