Ash.Resource.Calculation with field_policy
in a calculation Ash.Resource.Calculation
I have the following load:
but user has a field_policy defined to prevent to have :email and :phone_number for specific actors.
Does the load take into account the actor from context?
Else how to do to make sure that field_policy applies with the given actor ?
In my case, I am loading :email and :full_phone_number, not because I need them in the calculation itself.. but later to display them in my page if they are defined.
Regards,
Angy
I have the following load:
but user has a field_policy defined to prevent to have :email and :phone_number for specific actors.
Does the load take into account the actor from context?
Else how to do to make sure that field_policy applies with the given actor ?
In my case, I am loading :email and :full_phone_number, not because I need them in the calculation itself.. but later to display them in my page if they are defined.
Regards,
Angy
