You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any changes to the select value of a query (i.e. what fields to return) are ignored in the beforeFind hook.
The backstory on this change: If a call is made to classes/_Users, the returned object contains sensitive info, i.e. email addresses that should not be able to be retrieved without the master key (or by the user herself on her own record.)
So there may be a better way to solve this problem (I'm all ears!), but my solution was to use a beforeFind hook and only select non-sensitive fields (a little simplified, but you get the idea).
The text was updated successfully, but these errors were encountered:
Any changes to the select value of a query (i.e. what fields to return) are ignored in the beforeFind hook.
The backstory on this change: If a call is made to
classes/_Users
, the returned object contains sensitive info, i.e. email addresses that should not be able to be retrieved without the master key (or by the user herself on her own record.)So there may be a better way to solve this problem (I'm all ears!), but my solution was to use a beforeFind hook and only select non-sensitive fields (a little simplified, but you get the idea).
The text was updated successfully, but these errors were encountered: