-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
MasterKey, Users email and edition #3301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Similar issue here. I tried to query on a custom class with a pointer to Parse.User. Tried both theUser.get('email') and theUser.getEmail() |
hey @Amex22. Sorry my change is causing your grief! Again, my goal was to mimic what parse.com did.... I see two potential solutions for you here:
|
Hi @acinader ! Thanks you for your answer. I'm not blaming you for your changes, in fact, I am ok with the fact that we need to mimic parse.com. But on parse.com, we had the Parse.Cloud.useMasterKey() solution. Why not mimic this ? I would like to avoid doing a specific cloud code function so it would be better to have something like Parse.Cloud.useMasterKey() but I don't think I will have level to do sush a thing. Why closing this topic ? |
@Amex22 the way Parse.com and parse server run Cloud code is very different. As a consequence, there is no safe way to implement |
I like it too :) , but I don't have the level to do this. |
@Amex22 it's just a matter of effort, the source is available for everyone |
@natanrolnik well, I know, my doubt is more about my dev skills... |
@Amex22 you can re-open if you like. I closed it because I think I gave you two possible solutions to the specific question you asked: how to get the email address.
the |
Hi ! I don't understand, you say you want to mimic what parse.com did, but parse.com DID offer a solution (useMasterKey). I tried to make something like I suggested :
but i failed.... I'm sure that this is the solution to all our problems |
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()
)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.
The text was updated successfully, but these errors were encountered: