fix: [UI] Do not show REST client menu link when user don't have permission

pull/6720/head
Jakub Onderka 2020-12-09 17:48:37 +01:00
parent 5fbbe5bfe7
commit d6bf3710ba
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@
),
array(
'text' => __('REST client'),
'url' => $baseurl . '/servers/rest'
'url' => $baseurl . '/servers/rest',
'requirement' => $canAccess('servers', 'rest'),
),
array(
'type' => 'separator'