mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-20 01:04:23 +00:00
fix required role
This commit is contained in:
parent
faf5b7ca94
commit
b36ec02b65
@ -23,7 +23,7 @@ use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Chill\MainBundle\Export\AggregatorInterface;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
use Chill\ActivityBundle\Security\Authorization\ActivityVoter;
|
||||
use Chill\ActivityBundle\Security\Authorization\ActivityStatsVoter;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
|
||||
@ -149,7 +149,7 @@ class ActivityReasonAggregator implements AggregatorInterface
|
||||
|
||||
public function addRole()
|
||||
{
|
||||
return new Role(ActivityVoter::SEE);
|
||||
return new Role(ActivityStatsVoter::STATS);
|
||||
}
|
||||
|
||||
public function getLabels($key, array $values, $data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user