mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
fixes on tests
This commit is contained in:
@@ -23,7 +23,6 @@ use Doctrine\ORM\Mapping\ClassMetadata;
|
||||
use LogicException;
|
||||
use RuntimeException;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
use function count;
|
||||
|
||||
/**
|
||||
@@ -188,7 +187,7 @@ class TimelineEventProvider implements TimelineProviderInterface
|
||||
ClassMetadata $metadataPerson,
|
||||
Person $person
|
||||
) {
|
||||
$role = new Role('CHILL_EVENT_SEE');
|
||||
$role = 'CHILL_EVENT_SEE';
|
||||
|
||||
$reachableCenters = $this->helper->getReachableCenters($this->user, $role);
|
||||
$associationMapping = $metadataParticipation->getAssociationMapping('person');
|
||||
|
Reference in New Issue
Block a user