Closed
Description
Since update 2.3.0, emails field is not returned anymore for Parse.User queries.
Using masterkey in the client (javascript) for testing is working as expected.
I would like to know if there is a way to add the masterkey in a cloud based code for Parse.User queries if the request.user have the appropriate role, like Moderator or Administrator.
It would be great to be able to do something like (a little bit like Parse.Cloud.useMasterKey()
)
Parse.Cloud.beforeFind('_User', function(request) {
//check if request.user has appropriate role then
request.master = true;
});
That is my problem. Any idea ?
Could also be useful in a beforesave user, in order to edit another user without having the "cannot modify user XXXX" and without having to write a specific cloud code function.
Metadata
Metadata
Assignees
Labels
No labels