fixed: do not allow to create a course or see a houshold from the search result, if the user does not have any rights to do it

This commit is contained in:
2022-07-11 13:54:12 +02:00
parent 16fed67dd0
commit 4ef48216ed
2 changed files with 7 additions and 5 deletions

View File

@@ -113,7 +113,7 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH
->generate(self::class)
->addCheckFor(null, [self::CREATE, self::REASSIGN_BULK])
->addCheckFor(AccompanyingPeriod::class, [self::TOGGLE_CONFIDENTIAL, ...self::ALL])
->addCheckFor(Person::class, [self::SEE])
->addCheckFor(Person::class, [self::SEE, self::CREATE])
->build();
}