Skip to content
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

Cannot use Master Key with a logged in user #165

Open
cjbland opened this issue Aug 31, 2017 · 0 comments
Open

Cannot use Master Key with a logged in user #165

cjbland opened this issue Aug 31, 2017 · 0 comments

Comments

@cjbland
Copy link

cjbland commented Aug 31, 2017

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:

if ACCESS_KEYS.get('session_token'):
request.add_header('X-Parse-Session-Token', ACCESS_KEYS.get('session_token'))
elif master_key:
request.add_header('X-Parse-Master-Key', master_key)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant