Commit 4b0499cf authored by Julien Fastré's avatar Julien Fastré

fix invocation of old method

parent b042a7ae
......@@ -74,15 +74,20 @@ class PersonVoter extends AbstractChillVoter implements ProvideRoleHierarchyInte
return $this->helper->userHasAccess($token->getUser(), $subject, $attribute);
}
private function getAttributes()
{
return array(self::CREATE, self::UPDATE, self::SEE, self::STATS, self::LISTS);
}
public function getRoles()
{
return $this->getSupportedAttributes();
return $this->getAttributes();
}
public function getRolesWithoutScope()
{
return $this->getSupportedAttributes();
return $this->getAttributes();
}
public function getRolesWithHierarchy()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment