Added global auth disable in cert worker

This commit is contained in:
Matej Bačo 2022-03-23 14:46:59 +00:00
parent 41cc8bd38d
commit 7f7b23181f

View file

@ -11,6 +11,8 @@ use Utopia\Domains\Domain;
require_once __DIR__.'/../init.php';
Authorization::disable();
Console::title('Certificates V1 Worker');
Console::success(APP_NAME . ' certificates worker v1 has started');
@ -40,8 +42,6 @@ class CertificatesV1 extends Worker
* 3.5. Schedule to renew certificate in 60 days
*/
Authorization::disable();
// Args
$document = $this->args['document'];
$domain = $this->args['domain'];
@ -206,8 +206,6 @@ class CertificatesV1 extends Worker
'validateTarget' => $validateTarget,
'validateCNAME' => $validateCNAME,
]); // Async task rescheduale
Authorization::reset();
}
public function shutdown(): void