Skip to content

Commit

Permalink
do not show apcuinfo or opcacheinfo to users with change_serversettin…
Browse files Browse the repository at this point in the history
…gs=0

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
  • Loading branch information
d00p committed Dec 31, 2022
1 parent fede817 commit 5a807e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin_apcuinfo.php
Expand Up @@ -54,7 +54,7 @@
Response::standardError(lng('error.no_apcuinfo'));
}

if ($page == 'showinfo') {
if ($page == 'showinfo' && $userinfo['change_serversettings'] == '1') {
$cache = apcu_cache_info();
$mem = apcu_sma_info();
$time = time();
Expand Down
2 changes: 1 addition & 1 deletion admin_opcacheinfo.php
Expand Up @@ -50,7 +50,7 @@
Response::standardError(lng('error.no_opcacheinfo'));
}

if ($page == 'showinfo') {
if ($page == 'showinfo' && $userinfo['change_serversettings'] == '1') {
$time = time();
$log->logAction(FroxlorLogger::ADM_ACTION, LOG_NOTICE, "viewed OPcache info");

Expand Down

0 comments on commit 5a807e3

Please sign in to comment.