From 26c9a8e32637d506249989318941c923171b7658 Mon Sep 17 00:00:00 2001 From: Georg Ringer <georg.ringer@gmail.com> Date: Thu, 10 Oct 2019 05:19:07 +0200 Subject: [PATCH] [BUGFIX] Set tasks backend:lock & backend:unlock as not schedulable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tasks `backend:lock` and `backend:unlock` must only be triggered by commandline and not via backend as this doesn't make any sense. Any admin would disable his own account by locking via backend and there is no chance to unlock it again. Resolves: #89387 Releases: master, 9.5 Change-Id: Ief460cfc033b555e77869b22b61b05c57a27d1a7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61938 Tested-by: Christian Eßl <indy.essl@gmail.com> Tested-by: Jörg Bösche <typo3@joergboesche.de> Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Sascha Rademacher <sascha.rademacher+typo3@gmail.com> Tested-by: Henning Liebe <h.liebe@neusta.de> Tested-by: Richard Haeser <richard@maxserv.com> Reviewed-by: Christian Eßl <indy.essl@gmail.com> Reviewed-by: Jörg Bösche <typo3@joergboesche.de> Reviewed-by: Sascha Rademacher <sascha.rademacher+typo3@gmail.com> Reviewed-by: Henning Liebe <h.liebe@neusta.de> Reviewed-by: Richard Haeser <richard@maxserv.com> --- typo3/sysext/backend/Configuration/Commands.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/backend/Configuration/Commands.php b/typo3/sysext/backend/Configuration/Commands.php index 7a7a9420e93b..0b37d5241943 100644 --- a/typo3/sysext/backend/Configuration/Commands.php +++ b/typo3/sysext/backend/Configuration/Commands.php @@ -9,10 +9,12 @@ */ return [ 'backend:lock' => [ - 'class' => \TYPO3\CMS\Backend\Command\LockBackendCommand::class + 'class' => \TYPO3\CMS\Backend\Command\LockBackendCommand::class, + 'schedulable' => false ], 'backend:unlock' => [ - 'class' => \TYPO3\CMS\Backend\Command\UnlockBackendCommand::class + 'class' => \TYPO3\CMS\Backend\Command\UnlockBackendCommand::class, + 'schedulable' => false, ], 'referenceindex:update' => [ 'class' => \TYPO3\CMS\Backend\Command\ReferenceIndexUpdateCommand::class -- GitLab