diff --git a/htdocs/admin.php b/htdocs/admin.php index 5e5b16e..574c35b 100644 --- a/htdocs/admin.php +++ b/htdocs/admin.php @@ -38,7 +38,7 @@ if (!empty($_POST['delete'])) { print ''; } -if (!empty($_POST['isactive'])) { +if (!empty($_POST['isactive']) && $server->isSuperAdmin()) { $active = ($_POST['isactive'] == "TRUE") ? true : false; try { $domain->update($active); @@ -53,10 +53,12 @@ if (!empty($_POST['isactive'])) {
getName().'">'; - if (!$domain->isactive()) { - print '   '; - } else { - print '   '; + if ($server->isSuperAdmin()) { + if (!$domain->isactive()) { + print '   '; + } else { + print '   '; + } } ?>