Reputation: 441
I have added a column in the User class that holds the users score in a game, this is an ios app. I also have a javascript that runs seperate to the app that changes all the users scores based on other variables. I can access the user class via a query and get the variables but if I try
user.save();
if does not work. Is there a different save method I need to use to save the new user details. This cannot be done based off the current user as this javascript changes every user in the User class.
Thanks,
Upvotes: 0
Views: 602
Reputation: 9942
You don't have access to the user object without being signed in, so for anything you need to do with other user objects than your own, you should separate this out to another class.
You CAN circumvent this by using a master key, though. Check this post:
https://parse.com/questions/bypass-acl-on-cloud-code
Upvotes: 1