Closed gateway closed 6 years ago
After a bit of testing I found the solution and I'm posting it here just incase anyone runs into this..
$user = new ParseUser();
$user->setUsername("foo");
$user->setPassword("Q2w#4!o)df");
try {
$user->signUp();
$acl = ParseACL::createACLWithUser($user);
$user->setACL($acl);
$user->save();
} catch (ParseException $ex) {
// error in $ex->getMessage();
}
the key being these two lines after the $user->signUp();
$acl = ParseACL::createACLWithUser($user);
$user->setACL($acl);
I need the ability to create a parse user from our backend admin tool and set proper ACL for only that user to be able to read/write to his or her object.
Our mobile client can set the ACL to the users object id created, this from what we understand only allows the user to be able to do any changes to the users object.
On the mobile client this is how we set it.
Doing almost the similar process with the PHP sdk doesnt seem to work.
Looking at the sdk it doesnt seem like you dan do this..
Which the our mobile clients are doing..
Basically with the code above creates a row like this in our database.
Issue, or am I missing some sort of other function call to fix this?