check acl before showing button for creating activity in person/activity

This commit is contained in:
2021-11-24 15:14:06 +00:00
parent 5be3b3f423
commit b81c834b5e
4 changed files with 6 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ class PersonHasCenterValidatorTest extends ConstraintValidatorTestCase
]);
$prophecy = $this->prophesize(CenterResolverManagerInterface::class);
$prophecy->resolveCenters(Argument::type(Person::class), Argument::any())->will(function ($args) {
$center = $args[0]->getCenter();