Merge branch 'upgrade-sf3' of framagit.org:Chill-project/Chill-Person into upgrade-sf3

merge...
This commit is contained in:
nobohan 2018-04-06 08:11:29 +02:00
commit 3fae866e2e

View File

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