Skip to content
Snippets Groups Projects
Commit c63b2aae authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Privilege pour le menu extraction

parent e528c864
Branches
Tags
No related merge requests found
......@@ -41,6 +41,7 @@ $modules = [
'Unicaen\Console',
'UnicaenSynchro',
'Agent',
'Structure',
'Carriere',
......@@ -49,6 +50,7 @@ $modules = [
'DemandeExterne',
'Fichier',
'Application',
// 'Laminas\DeveloperTools',
];
......
......@@ -4,6 +4,7 @@ namespace Formation;
use Formation\Controller\ExportController;
use Formation\Controller\ExportControllerFactory;
use Formation\Provider\Privilege\ExportPrivileges;
use Laminas\Router\Http\Literal;
use Laminas\Router\Http\Segment;
use UnicaenPrivilege\Guard\PrivilegeController;
......@@ -18,7 +19,8 @@ return [
'index',
'extraction-inscription',
],
'roles' => [
'privileges' => [
ExportPrivileges::EXPORT_INDEX,
],
],
],
......
<?php
namespace Formation\Provider\Privilege;
use UnicaenPrivilege\Provider\Privilege\Privileges;
class ExportPrivileges extends Privileges
{
const EXPORT_INDEX = 'export-export_index';
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment