From 4f01b277fb65099058a1ea97133e4220a3cb62af Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 10 Mar 2014 14:20:12 +0100 Subject: [PATCH] [FIX] Disable monitor option in workers page --- public/include/pages/account/workers.inc.php | 1 + public/templates/mpos/account/workers/default.tpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/include/pages/account/workers.inc.php b/public/include/pages/account/workers.inc.php index e85623f1..5e5c7d08 100644 --- a/public/include/pages/account/workers.inc.php +++ b/public/include/pages/account/workers.inc.php @@ -40,6 +40,7 @@ if ($user->isAuthenticated()) { break; } + $smarty->assign('DISABLE_IDLEWORKERNOTIFICATIONS', $setting->getValue('notifications_disable_idle_worker')); $aWorkers = $worker->getWorkers($_SESSION['USERDATA']['id']); if (!$aWorkers) $_SESSION['POPUP'][] = array('CONTENT' => 'You have no workers configured', 'TYPE' => 'errormsg'); diff --git a/public/templates/mpos/account/workers/default.tpl b/public/templates/mpos/account/workers/default.tpl index e3514850..fd9726d6 100644 --- a/public/templates/mpos/account/workers/default.tpl +++ b/public/templates/mpos/account/workers/default.tpl @@ -37,7 +37,7 @@ Worker Login Worker Password Active - {if $GLOBAL.config.disable_notifications != 1}Monitor{/if} + {if $GLOBAL.config.disable_notifications != 1 && $DISABLE_IDLEWORKERNOTIFICATIONS != 1}Monitor{/if} Khash/s Difficulty Action @@ -51,7 +51,7 @@ 0} style="color: orange"{/if}>{$username.0|escape}. - {if $GLOBAL.config.disable_notifications != 1} + {if $GLOBAL.config.disable_notifications != 1 && $DISABLE_IDLEWORKERNOTIFICATIONS != 1}