mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
adapt elements to new interface definition
This commit is contained in:
@@ -80,8 +80,8 @@ class GenderFilter implements FilterInterface
|
||||
return 'Filter by person gender';
|
||||
}
|
||||
|
||||
public function requiredRole()
|
||||
public function addRole()
|
||||
{
|
||||
return new Role(\Chill\PersonBundle\Security\Authorization\PersonVoter::STATS);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@@ -65,8 +65,8 @@ class NationalityFilter implements FilterInterface
|
||||
return "Filter by person's nationality";
|
||||
}
|
||||
|
||||
public function requiredRole()
|
||||
public function addRole()
|
||||
{
|
||||
return new Role(\Chill\PersonBundle\Security\Authorization\PersonVoter::STATS);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user