Commit 8838be62 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Suppression des usages résiduels du privilège qui n'existe plus.

parent 5a136bea
Loading
Loading
Loading
Loading
+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;
@@ -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,
                    ]
                ],
            ],
+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
@@ -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';
}
+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
@@ -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>
+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
@@ -4,6 +4,7 @@
 * @var Information[] $informations
 */

use Application\Provider\Privilege\FichierPrivileges;
use Information\Entity\Db\Information;
use Information\Provider\Privilege\InformationPrivileges;

@@ -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>