mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
fixes to make count social actions export work
This commit is contained in:
@@ -21,8 +21,9 @@ use Doctrine\ORM\Query;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use LogicException;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
|
||||
class CountSocialAction implements ExportInterface, GroupedExportInterface
|
||||
class CountSocialActions implements ExportInterface, GroupedExportInterface
|
||||
{
|
||||
protected SocialActionRepository $socialActionRepository;
|
||||
|
||||
@@ -90,9 +91,10 @@ class CountSocialAction implements ExportInterface, GroupedExportInterface
|
||||
return $qb;
|
||||
}
|
||||
|
||||
public function requiredRole(): string
|
||||
public function requiredRole(): Role
|
||||
{
|
||||
return AccompanyingPeriodVoter::STATS;
|
||||
//TODO change to string, but changes needed also in exportManager and possibly other locations.
|
||||
return new Role(AccompanyingPeriodVoter::STATS);
|
||||
}
|
||||
|
||||
public function supportsModifiers(): array
|
||||
|
Reference in New Issue
Block a user