Skip to content

Using the master key in a save hook #1658

@juliusbtesh

Description

@juliusbtesh

I am trying to refer to the Cloud Code example given for "beforeSave(Parse.Installation" and the function calls Parse.Cloud.useMasterKey(); But with the new Parse Server setups for the open source deployment, I read that I cannot use that line for using Mater Key anymore. How can I add that into this part of the function?

if (request.user) { request.object.set('user', request.user); } else { request.object.unset('user'); } response.success();

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions