Skip to content

Commit 84066d6

Browse files
committed
Do now show FTP traffic when the client has no ftp access
1 parent 810ed16 commit 84066d6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,12 @@
198198
'link' => 'sites/web_sites_stats.php',
199199
'html_id' => 'websites_stats');
200200

201-
$items[] = array( 'title' => 'FTP traffic',
202-
'target' => 'content',
203-
'link' => 'sites/ftp_sites_stats.php',
204-
'html_id' => 'ftpsites_stats');
205-
201+
if($app->auth->get_client_limit($userid, 'ftp_user') != 0) {
202+
$items[] = array( 'title' => 'FTP traffic',
203+
'target' => 'content',
204+
'link' => 'sites/ftp_sites_stats.php',
205+
'html_id' => 'ftpsites_stats');
206+
}
206207
$items[] = array( 'title' => 'Website quota (Harddisk)',
207208
'target' => 'content',
208209
'link' => 'sites/user_quota_stats.php',

0 commit comments

Comments
 (0)