Bypass all authorization for specific read action (including loaded relationships
I have this read action:
Is there an equivalent to
Note: I tried writing policies on every related resource to allow an invited user to read them, but besides feeling overkill, it felt wrong that an invited user could potentially access the dashboard by being able to read those related resources, I only want to access the related metadata for this specific action, nothing more.
multitenancy :bypass_all solves the tenancy requirement issue, but the loaded relationships are still returning nil due to authorization.Is there an equivalent to
:bypass_all for authorization so that this action (and its loaded relationships) skips all authorization checks entirely?Note: I tried writing policies on every related resource to allow an invited user to read them, but besides feeling overkill, it felt wrong that an invited user could potentially access the dashboard by being able to read those related resources, I only want to access the related metadata for this specific action, nothing more.
