milesrichardson / ParsePy

A relatively up-to-date fork of ParsePy, the Python wrapper for the Parse.com API. Originally maintained by @dgrtwo
MIT License
515 stars 184 forks source link

Cannot use Master Key with a logged in user #165

Open cjbland opened 7 years ago

cjbland commented 7 years ago

I'm developing a very basic administrator portal that needs to update objects that do not belong to them. Because I have a logged in user, the execute method is taking the session token over the Master Key:

https://github.com/milesrichardson/ParsePy/blob/1623d6dd2dc049d978f9cec275e3abcca9dce356/parse_rest/connection.py#L132-L135

Could this be broken into two ifs instead of an if/elif?