From e2518ce99a4bf61eec8c4f434df9a3fdf971a519 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Fri, 3 Jul 2020 08:57:41 +0300 Subject: [PATCH] Dont enable -> reset --- app/workers/tasks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/workers/tasks.php b/app/workers/tasks.php index 4d65605bc7..0e4a8d11b2 100644 --- a/app/workers/tasks.php +++ b/app/workers/tasks.php @@ -58,7 +58,7 @@ class TasksV1 $task = $consoleDB->getDocument($taskId); - Authorization::enable(); + Authorization::reset(); if (\is_null($task->getId()) || Database::SYSTEM_COLLECTION_TASKS !== $task->getCollection()) { throw new Exception('Task Not Found'); @@ -188,7 +188,7 @@ class TasksV1 throw new Exception('Failed saving tasks to DB'); } - Authorization::enable(); + Authorization::reset(); // ResqueScheduler::enqueueAt($next, 'v1-tasks', 'TasksV1', $task->getArrayCopy()); // Sync task rescheduale