How can you create a resource that is based off another model?
I currently have a resource called "User", which has a bunch of filters enabled. One of those filters, is called Role - and when the role of "Author" is checked, it only shows users with that role. Additionally, it enables/disables some functionality for users when viewing authors, such as showing how much they're owed for their content, articles they've published.etc.
This is getting out of hand, as I'm having to do a lot of checks all over the place, and I think it would be better if I simply contextualised a new resource, based on the User model. However, I'm having some difficulties setting this up properly. Any suggestions or tips on how to do this "properly" ?
This is getting out of hand, as I'm having to do a lot of checks all over the place, and I think it would be better if I simply contextualised a new resource, based on the User model. However, I'm having some difficulties setting this up properly. Any suggestions or tips on how to do this "properly" ?