From 0199af7dcb8bf5cdb3c33bf8d91922e19065456d Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 25 May 2016 11:49:42 +0200 Subject: [PATCH] JobsCommand: add support for global disable flag --- application/clicommands/JobsCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/clicommands/JobsCommand.php b/application/clicommands/JobsCommand.php index 7e77b5f9..08eaa4c9 100644 --- a/application/clicommands/JobsCommand.php +++ b/application/clicommands/JobsCommand.php @@ -33,7 +33,7 @@ class JobsCommand extends Command protected function hasBeenDisabled() { - return false; + return $this->db()->getSetting('disable_all_jobs') === 'y'; } protected function runScheduledImports()