Skip to content

Commit baf703b

Browse files
committed
Do not show db or site quota when the sites module is not active
1 parent 3f8c72e commit baf703b

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)