Skip to content

Commit 03e6281

Browse files
ccaillybtry
authored andcommitted
fix: Adding READ right for display reservations menu tab
1 parent 2259783 commit 03e6281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/common.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ public static function hookRedefineMenu($menus) {
806806
$newMenu['faq'] = $menus['faq'];
807807
$newMenu['faq']['default'] = Plugin::getWebDir('formcreator', false) . '/front/knowbaseitem.php';
808808
}
809-
if (Session::haveRight("reservation", ReservationItem::RESERVEANITEM)) {
809+
if (Session::haveRightsOr("reservation", [READ, ReservationItem::RESERVEANITEM])) {
810810
if (isset($menus['reservation'])) {
811811
$newMenu['reservation'] = $menus['reservation'];
812812
}

0 commit comments

Comments
 (0)