Closed
Description
HI guys,
I'm getting the error:
Fatal error: Call to undefined method Parse\ParseACL::setWriteAccessWithName() in /<dir>/vendor/parse/php-sdk/src/Parse/ParseACL.php on line 496
here's the call:
$role = ParseRole::query()->equalTo('name', "Administrateur")->first();
if (empty($role))
die();
$message = new ParseObject("Message");
$roleACL = new ParseACL();
$roleACL->setRoleWriteAccess($role, true);
$message->setACL($roleACL);
$message->save();
The function setWriteAccessWithName
is only used in this function and defined nowhere.
Oh ! And by the way: Thanks, awesome job.
edit:
Need to changes ParseACL.php:496:
$this->setWriteAccessWithName($role->getName(), $allowed);
to
$this->setRoleWriteAccessWithName($role->getName(), $allowed);
Metadata
Metadata
Assignees
Labels
No labels