Skip to content

Commit 54dd36e

Browse files
committed
Do not show db or site quota when the sites module is not active
Cherry-picked from !825 after master change.
1 parent 12e79e4 commit 54dd36e

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
@@ -11,6 +11,11 @@ function show() {
1111
return;
1212
}
1313

14+
$modules = $_SESSION['s']['user']['modules'];
15+
if (!in_array($modules, 'sites')) {
16+
return '';
17+
}
18+
1419
$tpl = new tpl;
1520
$tpl->newTemplate("dashlets/templates/databasequota.htm");
1621

interface/web/dashboard/dashlets/quota.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ function show() {
1111
return;
1212
}
1313

14+
$modules = $_SESSION['s']['user']['modules'];
15+
if (!in_array($modules, 'sites')) {
16+
return '';
17+
}
18+
1419
$tpl = new tpl;
1520
$tpl->newTemplate("dashlets/templates/quota.htm");
1621

0 commit comments

Comments
 (0)