Hello!
I have 3 collections:
-
device -
max_values -
spares
I set read permissions for each collection like this:
a) device.company IN $CURRENT_USER.company.children.descendant_id
b) max_values.device.company IN $CURRENT_USER.company.children.descendant_id
c) spares.device.company IN $CURRENT_USER.company.children.descendant_id
But when I request device joined with the other two collections, like:
{
"fields": ["*", "max_values.*", "spares.*"]
}
Directus also checks the permissions for all related collections, which makes the request time 3 times slower than without permissions.
Is there any way to configure permissions b and c so that they are only applied when accessing max_values or spares directly, but skipped when they are fetched as relations of device (where only rule a should be applied)?