From 5ec3c83cdcb909ac0dc71ca93ae7a8e8e4217858 Mon Sep 17 00:00:00 2001 From: Nozomi Anzai Date: Mon, 21 Apr 2014 16:56:33 +0900 Subject: [PATCH] Set is_superuser to judge buttons for PostgreSQL to be available or not. --- nodeStatus.php | 1 + 1 file changed, 1 insertion(+) diff --git a/nodeStatus.php b/nodeStatus.php index e79fed8..d85c8b2 100644 --- a/nodeStatus.php +++ b/nodeStatus.php @@ -127,6 +127,7 @@ $tpl->assign('msgStopPgpool', $message['msgStopPgpool']); $tpl->assign('nodeCount', $nodeCount); $tpl->assign('has_not_loaded_node', $has_not_loaded_node); $tpl->assign('pgpoolIsRunning', $is_pgpool_running); +$tpl->assign('is_superuser', isSuperUser($_SESSION[SESSION_LOGIN_USER])) // Set params $configValue = readConfigParams('recovery_1st_stage'); -- 2.39.5