mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix invocation of old method
This commit is contained in:
parent
b042a7ae55
commit
4b0499cf8d
@ -74,15 +74,20 @@ class PersonVoter extends AbstractChillVoter implements ProvideRoleHierarchyInte
|
|||||||
|
|
||||||
return $this->helper->userHasAccess($token->getUser(), $subject, $attribute);
|
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()
|
public function getRoles()
|
||||||
{
|
{
|
||||||
return $this->getSupportedAttributes();
|
return $this->getAttributes();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getRolesWithoutScope()
|
public function getRolesWithoutScope()
|
||||||
{
|
{
|
||||||
return $this->getSupportedAttributes();
|
return $this->getAttributes();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getRolesWithHierarchy()
|
public function getRolesWithHierarchy()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user