I am using discriminator-based multi-tenancy in Grails 4, upgrading from Grails 2 where I used the hibernate-filter plugin. In Grails 2, I could disable the hibernate-filter in a Grails filter for admin roles - thereby not needing "if (admin)"-checks throughout my application. Can I somehow disable multi-tenancy in Grails 4 and keep it DRY?
Based on Jeffs comment, I rephrase my question for future references:
Can multitenancy be fully disabled for the entire request any time the request can be authenticated to come from a client that has an admin role?