Commit 3fbbc79d authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Privilège de la gestion des applications

parent 5ce0d566
Loading
Loading
Loading
Loading
+5 −4
Changes for module/Application/view/application/application/index.phtml: 5 added lines, 4 removed lines.
Original line number Diff line number Diff line
<?php

use Application\Entity\Db\Application;
use Application\Provider\Privilege\ApplicationPrivileges;

/**
 * @var Application[] $applications
 */

$canAfficher = true;
$canAjouter = true;
$canEditer = true;
$canEffacer = true;
$canAfficher    = $this->isAllowed(ApplicationPrivileges::getResourceId(ApplicationPrivileges::AFFICHER));
$canAjouter     = $this->isAllowed(ApplicationPrivileges::getResourceId(ApplicationPrivileges::AJOUTER));
$canEditer      = $this->isAllowed(ApplicationPrivileges::getResourceId(ApplicationPrivileges::EDITER));
$canEffacer     = $this->isAllowed(ApplicationPrivileges::getResourceId(ApplicationPrivileges::EFFACER));

$this->headTitle("Index des applications");
?>