Commit 790f54b9 authored by joriot221's avatar joriot221
Browse files

Correction ajout d'un referentiel fonction

parent a6f15764
Loading
Loading
Loading
Loading
+4 −2
Changes for module/Application/view/application/fonction-referentiel/saisie.phtml: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -6,6 +6,9 @@
 */

/** @var \Application\Entity\Db\FonctionReferentiel $fonction */

use Application\Provider\Privilege\Privileges;

$fonction = $form->getObject();

$visu = $this->messenger()->addCurrentMessagesFromFlashMessenger() . $this->form($form);
@@ -19,9 +22,8 @@ $tabs = [
];

$id      = $fonction->getId();
$canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::PLAFONDS_CONFIG_REFERENTIEL));

$canEdit = $this->isAllowed($fonction, \Application\Provider\Privilege\Privileges::PLAFONDS_CONFIG_REFERENTIEL);
$canEdit = true;

if ($id && $canEdit) {