dont show page content for resellers withouth required permissions to actually do something

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-12-31 00:42:58 +01:00
parent d643e8c673
commit 0527f22dc9
4 changed files with 4 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ use Froxlor\UI\Response;
$id = (int)Request::any('id');
if ($page == 'mysqlserver' || $page == 'overview') {
if (($page == 'mysqlserver' || $page == 'overview') && $userinfo['change_serversettings'] == '1') {
if ($action == '') {
$log->logAction(FroxlorLogger::ADM_ACTION, LOG_NOTICE, "viewed admin_mysqlserver");