Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Trying to set Parse User ACL
var user = new Parse.User({
name: name,
username: email,
email: email,
password: password
});
user.signUp().then(
function() {
var user = Parse.User.current();
if ( user ) {
var customACL = new Parse.ACL(user);
customACL.setRoleWriteAccess(false);
customACL.setPublicWriteAccess(false)
user.setACL(customACL);
}
this.transitionTo('home');
}.bind(this),
function(error) {
// Show the error message somewhere and let the user try again.
alert("Error: " + error.code + " " + error.message);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.