I would like to setup a permission that allow users to book sessions for themself.
My database is organised in a way that the technician is related with a user, so I want create this permissions dinamicly meaning that a techcnician can only create a sessions if the technician field corresponds to the $current_user.
"technician.user.id === $CURRENT_USER"
I have done many permissions like this in view and update and works perfectly but in the creation I see only the top level field "technician" bellow is a printscreen:
is it possible to enforce this validation?
thanks