Skip to content

Commit

Permalink
Setup Permission login
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Jun 14, 2024
1 parent f2c421c commit 554f17f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
Expand Down

0 comments on commit 554f17f

Please sign in to comment.