Skip to content

[ParseRole] Fatal error: Call to undefined method Parse\ParseACL::setWriteAccessWithName() #24

Closed
@watcheur

Description

@watcheur

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();

here is the role:
Image

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

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