mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
adapting classes to new interfaces
This commit is contained in:
@@ -27,6 +27,7 @@ use Chill\ActivityBundle\Entity\ActivityReason;
|
||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
use Doctrine\ORM\Query\Expr;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
use Chill\ActivityBundle\Security\Authorization\ActivityVoter;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -90,8 +91,8 @@ class ActivityReasonFilter implements FilterInterface
|
||||
return 'Filter by reason';
|
||||
}
|
||||
|
||||
public function requiredRole()
|
||||
public function addRole()
|
||||
{
|
||||
return new Role('dummy');
|
||||
return new Role(ActivityVoter::SEE);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user