Commit 3781003e authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Privilèges associés agent

parent a7da8dd3
Loading
Loading
Loading
Loading
+1
Changes for module/Application/src/Application/Provider/Privilege/FichePostePrivileges.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -12,4 +12,5 @@ class FichePostePrivileges extends Privileges
    const FICHEPOSTE_MODIFIER   = 'ficheposte-ficheposte_modifier';
    const FICHEPOSTE_HISTORISER = 'ficheposte-ficheposte_historiser';
    const FICHEPOSTE_DETRUIRE   = 'ficheposte-ficheposte_detruire';
    const FICHEPOSTE_ASSOCIERAGENT = 'ficheposte-ficheposte_associeragent';
}
+1 −1
Changes for module/Application/view/application/fiche-poste/editer.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ $canEditerSpecificte = $this->isAllowed(FichePostePrivileges::getResourceId(Fich
$canEditer = $this->isAllowed(FichePostePrivileges::getResourceId(FichePostePrivileges::FICHEPOSTE_MODIFIER));
$canEditerExpertise = true || $this->isAllowed(FichePostePrivileges::getResourceId(FichePostePrivileges::FICHEPOSTE_MODIFIER));

$canAssocierAgent = $canEditer;
$canAssocierAgent = $this->isAllowed(FichePostePrivileges::getResourceId(FichePostePrivileges::FICHEPOSTE_ASSOCIERAGENT));
$canAssocierMetierType = $canEditer;

$mode = 'edition';