Skip to content
Snippets Groups Projects
Commit 0589b0b2 authored by Marius Burkard's avatar Marius Burkard
Browse files

Merge branch 'patch-check-correct-module' into 'stable-3.1'

Check access for backup stats

See merge request ispconfig/ispconfig3!965
parents 263a5a22 e82b8791
No related branches found
No related tags found
1 merge request!965Check access for backup stats
......@@ -9,7 +9,7 @@ $list_def_file = 'list/backup_stats.list.php';
******************************************/
//* Check permissions for module
$app->auth->check_module_permissions('sites');
$app->auth->check_module_permissions('mail');
$app->load('listform_actions','functions');
......
......@@ -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