Commit 3fae866e authored by Julien Minet's avatar Julien Minet

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

merge...
parents 769c9e4e 2a096431
Pipeline #46327 canceled with stages
......@@ -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