RELEASE V.4.0.0 : VERSION LONG SUPPORT (LTS)
--> Imports de ligne via fichier GTFS --> Extrapolation possible des données --> Générateur de fiches horaires
This commit is contained in:
1 parent
37ab831aac
commit
1c68740e41
25 files changed
+13372
-535
No files matched your search
@@ -44,7 +44,8 @@ const MENU_GROUPS = [
|
||||
label: 'Diffusion',
|
||||
items: [
|
||||
{ label: "Gestion d'informations", href: '/informations', match: ['/informations'] },
|
||||
{ label: 'Annonces sonores', href: '/annonces-sonores', match: ['/annonces-sonores'] }
|
||||
{ label: 'Annonces sonores', href: '/annonces-sonores', match: ['/annonces-sonores'] },
|
||||
{ label: 'Fiches horaires', href: '/fiches-horaires', match: ['/fiches-horaires'] }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -330,9 +331,10 @@ export default function AppHeader({ isLoggedIn, userName }) {
|
||||
else if (section === 'gares') permSection = 'gares';
|
||||
else if (section === 'quais') permSection = 'quais';
|
||||
else if (section === 'annonces-sonores') permSection = 'annonces_sonores';
|
||||
else if (section === 'fiches-horaires') permSection = 'fiches_horaires';
|
||||
else if (section === 'systeme-maj') permSection = 'systeme_maj';
|
||||
|
||||
return hasAccessTo(user, permSection);
|
||||
return hasAccessTo(user, permSection) || (permSection === 'fiches_horaires' && hasAccessTo(user, 'horaires'));
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user