Skip to content

Commit

Permalink
fix: Adding READ right for display reservations menu tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ccailly authored and btry committed Jul 10, 2023
1 parent 2259783 commit 03e6281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/common.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ public static function hookRedefineMenu($menus) {
$newMenu['faq'] = $menus['faq'];
$newMenu['faq']['default'] = Plugin::getWebDir('formcreator', false) . '/front/knowbaseitem.php';
}
if (Session::haveRight("reservation", ReservationItem::RESERVEANITEM)) {
if (Session::haveRightsOr("reservation", [READ, ReservationItem::RESERVEANITEM])) {
if (isset($menus['reservation'])) {
$newMenu['reservation'] = $menus['reservation'];
}
Expand Down

0 comments on commit 03e6281

Please sign in to comment.