Skip to content

Commit 71b8767

Browse files
Do not remove service catalog for users that cant create tickets
1 parent fa8ebe6 commit 71b8767

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Html.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,10 +1488,7 @@ public static function generateHelpMenu()
14881488
throw new RuntimeException("Cant load current entity");
14891489
}
14901490

1491-
if (
1492-
Session::haveRight("ticket", CREATE)
1493-
&& $entity->isServiceCatalogEnabled()
1494-
) {
1491+
if ($entity->isServiceCatalogEnabled()) {
14951492
$menu['create_ticket'] = [
14961493
'default' => ServiceCatalog::getSearchURL(false),
14971494
'title' => __('Create a ticket'),

0 commit comments

Comments
 (0)