user role client : give access to panel account

This commit is contained in:
isUnknown 2025-01-27 18:22:03 +01:00
parent 8ff30c7f34
commit bcaf287235
7 changed files with 84 additions and 84 deletions

View file

@ -1,24 +1,15 @@
<?php
return [
// 'site' => [
// 'label' => 'Dashboard',
// 'icon' => 'dashboard',
// 'current' => function (string $current): bool {
// // the links of all your custom menu entries
// $links = [
// 'pages/clients',
// 'pages/projects',
// 'pages/inspirations',
// 'pages/notifications',
// 'pages/reunions'
// ];
// $path = Kirby\Cms\App::instance()->path();
// return
// $current === 'site' &&
// A::every($links, fn ($link) => Str::contains($path, $link) === false);
// }
// ],
$menu = [
'website' => [
"label" => "Ouvrir le site",
"icon" => "open",
"link" => "https://designtopack.morphozbygroupepochet.com",
'current' => function (string $current): bool {
return false;
}
],
"-",
'projects' => [
'label' => 'Projets',
'icon' => 'folder',
@ -76,16 +67,9 @@ return [
}
],
'-',
// 'reunions' => [
// 'label' => 'Réunions',
// 'icon' => 'calendar',
// 'link' => 'pages/reunions',
// 'current' => function (string $current): bool {
// $path = Kirby\Cms\App::instance()->path();
// return Str::contains($path, 'pages/reunions');
// }
// ],
'-',
'users',
'system'
];
];
return $menu;