Fixed: fix CS + fix "my workflow" api when course or work has been delete

This commit is contained in:
2023-07-14 09:44:05 +02:00
parent 59da93fd75
commit 1cc61cee36
3 changed files with 11 additions and 9 deletions

View File

@@ -20,7 +20,9 @@ use Symfony\Component\Security\Core\Security;
class AccompanyingCourseWorkEvaluationDocumentController extends AbstractController
{
public function __construct(Private Security $security) {}
public function __construct(private Security $security)
{
}
/**
* @Route(
@@ -35,8 +37,10 @@ class AccompanyingCourseWorkEvaluationDocumentController extends AbstractControl
return $this->redirectToRoute(
$this->security->isGranted(AccompanyingPeriodWorkVoter::UPDATE, $work) ?
'chill_person_accompanying_period_work_edit' : 'chill_person_accompanying_period_work_show', [
'id' => $work->getId()
]);
'chill_person_accompanying_period_work_edit' : 'chill_person_accompanying_period_work_show',
[
'id' => $work->getId()
]
);
}
}
}