Skip to content

Commit 9e96b63

Browse files
author
Till Brehm
committed
Merge branch 'patch-3' into 'master'
Do not show db or site quota when the sites module is not active See merge request ispconfig/ispconfig3!825
2 parents e95c9a5 + baf703b commit 9e96b63

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

interface/web/dashboard/dashlets/databasequota.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ function show() {
88
//* Loading Template
99
$app->uses('tpl,quota_lib');
1010

11+
$modules = $_SESSION['s']['user']['modules'];
12+
if (!in_array($modules, 'sites')) {
13+
return '';
14+
}
15+
1116
$tpl = new tpl;
1217
$tpl->newTemplate("dashlets/templates/databasequota.htm");
1318

interface/web/dashboard/dashlets/quota.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ function show() {
88
//* Loading Template
99
$app->uses('tpl,quota_lib');
1010

11+
$modules = $_SESSION['s']['user']['modules'];
12+
if (!in_array($modules, 'sites')) {
13+
return '';
14+
}
15+
1116
$tpl = new tpl;
1217
$tpl->newTemplate("dashlets/templates/quota.htm");
1318

0 commit comments

Comments
 (0)