Skip to content

Instantly share code, notes, and snippets.

@ikesyo
Last active December 15, 2015 09:59
Show Gist options
  • Select an option

  • Save ikesyo/5242697 to your computer and use it in GitHub Desktop.

Select an option

Save ikesyo/5242697 to your computer and use it in GitHub Desktop.
Parse Cloud Code: Make role
// Use Parse.Cloud.define to define as many cloud functions as you want.
// For example:
Parse.Cloud.define("hello", function(request, response) {
var acl = new Parse.ACL();
var role = new Parse.Role("testRole", acl);
role.save();
response.success("Hello world!");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment