mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix constant name.
This commit is contained in:
parent
6e9827806f
commit
e11c249131
@ -256,7 +256,7 @@ final class AccompanyingCourseApiController extends ApiController
|
|||||||
public function toggleConfidentialApi(AccompanyingPeriod $accompanyingCourse, Request $request)
|
public function toggleConfidentialApi(AccompanyingPeriod $accompanyingCourse, Request $request)
|
||||||
{
|
{
|
||||||
if ($request->getMethod() === 'POST') {
|
if ($request->getMethod() === 'POST') {
|
||||||
$this->denyAccessUnlessGranted(AccompanyingPeriodVoter::CONFIDENTIAL, $accompanyingCourse);
|
$this->denyAccessUnlessGranted(AccompanyingPeriodVoter::TOGGLE_CONFIDENTIAL, $accompanyingCourse);
|
||||||
|
|
||||||
$accompanyingCourse->setConfidential(!$accompanyingCourse->isConfidential());
|
$accompanyingCourse->setConfidential(!$accompanyingCourse->isConfidential());
|
||||||
$this->getDoctrine()->getManager()->flush();
|
$this->getDoctrine()->getManager()->flush();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user