Commit 9e96b63b authored by Till Brehm's avatar Till Brehm

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
parents e95c9a50 baf703b9
......@@ -8,6 +8,11 @@ class dashlet_databasequota {
//* Loading Template
$app->uses('tpl,quota_lib');
$modules = $_SESSION['s']['user']['modules'];
if (!in_array($modules, 'sites')) {
return '';
}
$tpl = new tpl;
$tpl->newTemplate("dashlets/templates/databasequota.htm");
......
......@@ -8,6 +8,11 @@ class dashlet_quota {
//* Loading Template
$app->uses('tpl,quota_lib');
$modules = $_SESSION['s']['user']['modules'];
if (!in_array($modules, 'sites')) {
return '';
}
$tpl = new tpl;
$tpl->newTemplate("dashlets/templates/quota.htm");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment