Skip to content

Commit 4ee9efa

Browse files
author
cfoe
committed
hide command line cat if all features are disabled
1 parent 8cf2763 commit 4ee9efa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

interface/web/sites/lib/module.conf.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@
108108

109109

110110
// CMD menu
111+
if($app->auth->get_client_limit($userid,'shell_user') != 0 OR $app->auth->get_client_limit($userid,'cron') != 0)
112+
{
111113
$items=array();
112114

113115
if($app->auth->get_client_limit($userid,'shell_user') != 0)
@@ -127,7 +129,7 @@
127129
$module["nav"][] = array( 'title' => 'Command Line',
128130
'open' => 1,
129131
'items' => $items);
130-
132+
}
131133

132134
// APS menu
133135
$items = array();

0 commit comments

Comments
 (0)