mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-26 17:43:54 +00:00
Documents added to accompanying course menu
This commit is contained in:
@@ -84,6 +84,9 @@ class DocumentAccompanyingCourseController extends AbstractController
|
||||
['date' => 'DESC']
|
||||
);
|
||||
|
||||
// dump($course);
|
||||
// dump($documents);
|
||||
|
||||
// $event = new PrivacyEvent($course, [
|
||||
// 'element_class' => AccompanyingCourseDocument::class,
|
||||
// 'action' => 'index'
|
||||
@@ -118,9 +121,9 @@ class DocumentAccompanyingCourseController extends AbstractController
|
||||
$form->handleRequest($request);
|
||||
|
||||
if ($form->isSubmitted() && $form->isValid()) {
|
||||
$this->denyAccessUnlessGranted(
|
||||
'CHILL_ACCOMPANYING_COURSE_DOCUMENT_CREATE', $document,
|
||||
'creation of this activity not allowed');
|
||||
// $this->denyAccessUnlessGranted(
|
||||
// 'CHILL_ACCOMPANYING_COURSE_DOCUMENT_CREATE', $document,
|
||||
// 'creation of this activity not allowed');
|
||||
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
$em->persist($document);
|
||||
|
Reference in New Issue
Block a user