Skip to content

Commit

Permalink
#349 [Mod] fix: missing check module on menu entries
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Jul 7, 2023
1 parent eaf93f6 commit 363918b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/modules/modDoliSIRH.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ public function __construct($db)
'url' => '/dolisirh/view/timespent_day.php',
'langs' => 'dolisirh@dolisirh',
'position' => 1000 + $r,
'enabled' => '$conf->dolisirh->enabled',
'enabled' => '$conf->dolisirh->enabled && $conf->projet->enabled',
'perms' => '$user->rights->dolisirh->lire && $user->rights->projet->lire',
'target' => '',
'user' => 0,
Expand Down Expand Up @@ -502,7 +502,7 @@ public function __construct($db)
'url' => '/dolisirh/view/timespent_day.php',
'langs' => 'dolisirh@dolisirh',
'position' => 1000 + $r,
'enabled' => '$conf->dolisirh->enabled',
'enabled' => '$conf->dolisirh->enabled && $conf->salaries->enabled',
'perms' => '$user->rights->dolisirh->lire && $user->rights->projet->lire',
'target' => '',
'user' => 0,
Expand Down Expand Up @@ -533,8 +533,8 @@ public function __construct($db)
'url' => '/categories/index.php?type=invoice',
'langs' => 'dolisirh@dolisirh',
'position' => 1000 + $r,
'enabled' => '$conf->dolisirh->enabled && $conf->categorie->enabled',
'perms' => '$user->rights->dolisirh->lire && $user->rights->categorie->lire',
'enabled' => '$conf->dolisirh->enabled && $conf->categorie->enabled && $conf->facture->enabled',
'perms' => '$user->rights->dolisirh->lire && $user->rights->categorie->lire && $user->rights->facture->lire',
'target' => '',
'user' => 0,
];
Expand Down

0 comments on commit 363918b

Please sign in to comment.