Loading module/Information/config/module.config.php +10 −1 Changes for module/Information/config/module.config.php: 10 added lines, 1 removed line. Original line number Diff line number Diff line <?php use Application\Entity\Db\Repository\DefaultEntityRepository; use Application\Provider\Privilege\FichierPrivileges; use Information\Controller\FichierController; use Information\Controller\InformationController; use Information\Controller\InformationControllerFactory; Loading Loading @@ -112,10 +113,18 @@ return [ 'action' => [ 'index', 'supprimer', ], 'privileges' => [ InformationPrivileges::INFORMATION_MODIFIER, ] ], [ 'controller' => FichierController::class, 'action' => [ 'telecharger', ], 'privileges' => [ InformationPrivileges::INFORMATION_FICHIER, FichierPrivileges::FICHIER_DIVERS_TELECHARGER, ] ], ], Loading module/Information/src/Information/Provider/Privilege/InformationPrivileges.php +0 −1 Changes for module/Information/src/Information/Provider/Privilege/InformationPrivileges.php: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -15,5 +15,4 @@ class InformationPrivileges extends Privileges * Todo: créer une catégorie de privilèges 'page-information'. */ const INFORMATION_MODIFIER = 'faq-modifier-information'; const INFORMATION_FICHIER = 'faq-modifier-fichier'; } module/Information/view/information/fichier/index.phtml +2 −2 Changes for module/Information/view/information/fichier/index.phtml: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -3,11 +3,11 @@ /** @var Fichier[] $fichiers */ use Application\Entity\Db\Fichier; use Information\Provider\Privilege\InformationPrivileges; use Application\Provider\Privilege\FichierPrivileges; $this->headTitle("Fichiers associés aux pages d'information"); $canFichier = $this->isAllowed(InformationPrivileges::getResourceId(InformationPrivileges::INFORMATION_FICHIER)); $canFichier = $this->isAllowed(FichierPrivileges::getResourceId(FichierPrivileges::FICHIER_DIVERS_TELEVERSER)); ?> <style> Loading module/Information/view/information/information/index.phtml +2 −1 Changes for module/Information/view/information/information/index.phtml: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ * @var Information[] $informations */ use Application\Provider\Privilege\FichierPrivileges; use Information\Entity\Db\Information; use Information\Provider\Privilege\InformationPrivileges; Loading @@ -12,7 +13,7 @@ $this->headTitle("Index des informations"); $canView = true; $canEdit = $this->isAllowed(InformationPrivileges::getResourceId(InformationPrivileges::INFORMATION_MODIFIER)); $canDelete = $this->isAllowed(InformationPrivileges::getResourceId(InformationPrivileges::INFORMATION_MODIFIER)); $canFichier = $this->isAllowed(InformationPrivileges::getResourceId(InformationPrivileges::INFORMATION_FICHIER)); $canFichier = $this->isAllowed(FichierPrivileges::getResourceId(FichierPrivileges::FICHIER_DIVERS_TELEVERSER)); ?> <style> Loading Loading
module/Information/config/module.config.php +10 −1 Changes for module/Information/config/module.config.php: 10 added lines, 1 removed line. Original line number Diff line number Diff line <?php use Application\Entity\Db\Repository\DefaultEntityRepository; use Application\Provider\Privilege\FichierPrivileges; use Information\Controller\FichierController; use Information\Controller\InformationController; use Information\Controller\InformationControllerFactory; Loading Loading @@ -112,10 +113,18 @@ return [ 'action' => [ 'index', 'supprimer', ], 'privileges' => [ InformationPrivileges::INFORMATION_MODIFIER, ] ], [ 'controller' => FichierController::class, 'action' => [ 'telecharger', ], 'privileges' => [ InformationPrivileges::INFORMATION_FICHIER, FichierPrivileges::FICHIER_DIVERS_TELECHARGER, ] ], ], Loading
module/Information/src/Information/Provider/Privilege/InformationPrivileges.php +0 −1 Changes for module/Information/src/Information/Provider/Privilege/InformationPrivileges.php: 0 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -15,5 +15,4 @@ class InformationPrivileges extends Privileges * Todo: créer une catégorie de privilèges 'page-information'. */ const INFORMATION_MODIFIER = 'faq-modifier-information'; const INFORMATION_FICHIER = 'faq-modifier-fichier'; }
module/Information/view/information/fichier/index.phtml +2 −2 Changes for module/Information/view/information/fichier/index.phtml: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -3,11 +3,11 @@ /** @var Fichier[] $fichiers */ use Application\Entity\Db\Fichier; use Information\Provider\Privilege\InformationPrivileges; use Application\Provider\Privilege\FichierPrivileges; $this->headTitle("Fichiers associés aux pages d'information"); $canFichier = $this->isAllowed(InformationPrivileges::getResourceId(InformationPrivileges::INFORMATION_FICHIER)); $canFichier = $this->isAllowed(FichierPrivileges::getResourceId(FichierPrivileges::FICHIER_DIVERS_TELEVERSER)); ?> <style> Loading
module/Information/view/information/information/index.phtml +2 −1 Changes for module/Information/view/information/information/index.phtml: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ * @var Information[] $informations */ use Application\Provider\Privilege\FichierPrivileges; use Information\Entity\Db\Information; use Information\Provider\Privilege\InformationPrivileges; Loading @@ -12,7 +13,7 @@ $this->headTitle("Index des informations"); $canView = true; $canEdit = $this->isAllowed(InformationPrivileges::getResourceId(InformationPrivileges::INFORMATION_MODIFIER)); $canDelete = $this->isAllowed(InformationPrivileges::getResourceId(InformationPrivileges::INFORMATION_MODIFIER)); $canFichier = $this->isAllowed(InformationPrivileges::getResourceId(InformationPrivileges::INFORMATION_FICHIER)); $canFichier = $this->isAllowed(FichierPrivileges::getResourceId(FichierPrivileges::FICHIER_DIVERS_TELEVERSER)); ?> <style> Loading