Skip to content
Snippets Groups Projects
Commit e82b8791 authored by Helmo's avatar Helmo
Browse files

Check the Backupfunction available setting when showing Backup Stats

parent 9be213cf
No related branches found
No related tags found
No related merge requests found
......@@ -189,12 +189,13 @@ $items[] = array( 'title' => 'Mailbox traffic',
'target' => 'content',
'link' => 'mail/mail_user_stats.php',
'html_id' => 'mail_user_stats');
$items[] = array (
'title' => 'Backup Stats',
'target' => 'content',
'link' => 'mail/backup_stats.php',
'html_id' => 'backup_stats');
if($app->auth->get_client_limit($userid, 'backup') == 'y') {
$items[] = array (
'title' => 'Backup Stats',
'target' => 'content',
'link' => 'mail/backup_stats.php',
'html_id' => 'backup_stats');
}
$module['nav'][] = array( 'title' => 'Statistics',
'open' => 1,
......
......@@ -209,12 +209,14 @@ $items[] = array( 'title' => 'Database quota',
'link' => 'sites/database_quota_stats.php',
'html_id' => 'databse_quota_stats');
$items[] = array (
'title' => 'Backup Stats',
'target' => 'content',
'link' => 'sites/backup_stats.php',
'html_id' => 'backup_stats'
);
if($app->auth->get_client_limit($userid, 'backup') == 'y') {
$items[] = array (
'title' => 'Backup Stats',
'target' => 'content',
'link' => 'sites/backup_stats.php',
'html_id' => 'backup_stats'
);
}
$module['nav'][] = array( 'title' => 'Statistics',
'open' => 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment