Skip to content

Cannot use Master Key with a logged in user #165

@cjbland

Description

@cjbland

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions