From 554f17f7aa239bce380746d9affa9ac53045341b Mon Sep 17 00:00:00 2001 From: ingalls Date: Fri, 14 Jun 2024 08:45:09 -0600 Subject: [PATCH] Setup Permission login --- task.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/task.ts b/task.ts index 6b3a52f..4ad3a25 100644 --- a/task.ts +++ b/task.ts @@ -126,7 +126,13 @@ export default class Task extends ETL { ) if (alerts.result === 'error') { - if (!loginAttempted && alerts.message === 'Please log in') { + if ( + !loginAttempted + && ( + alerts.message === 'Please log in' + || alerts.message === 'You do not have permission to view alerts for this agency.' + ) + ) { await this.controlLogin(layer); loginAttempted = true; i--;