Table Builder: Query repository to only show certain results (not a filter)Created 4 years ago by finnito
I've got a question: I would like to customise a table in the admin panel to only show certain results depending on the user that is logged in. I would like this to not be a filter because I only want to show entries associated with a community (stored in another stream) for which the user is an "admin". Therefore they shouldn't have the option to view another communities entries, only their own.
Is this possible?
You can use the
queryingcallback to start the query off right. An
onQueryingmethod on your builder would do the trick. This method is resolved out of the IoC container so the builder is passed but you can method inject anything: