Skip to content
Snippets Groups Projects
Commit 9a664689 authored by sebastien dupuy's avatar sebastien dupuy
Browse files

correctifs sur la creation et modif d'une categorie dans l espace documentaire

parent 64197d6c
No related branches found
No related tags found
No related merge requests found
Pipeline #28877 failed
......@@ -117,7 +117,7 @@ class CategoryController extends CRUDController
*/
public function formPrePersistData($object)
{
$object->setSystem(false);
$object->setSysteme(false);
}
/**
......@@ -157,7 +157,7 @@ class CategoryController extends CRUDController
throw new NotFoundHttpException("No object found with ID '{$id}'");
}
if (!$this->authorizationChecker->isGranted('ROLE_ADMIN') || $object->getSystem()) {
if (!$this->authorizationChecker->isGranted('ROLE_ADMIN') || $object->getSysteme()) {
$this->addFlash('success', $this->getFlashbagMessage('error', 'delete', $object));
return $this->redirectToRoute('documentation_document_list');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment