Skip to content

Commit

Permalink
[TM-1583] fix email polygon validation link based on role
Browse files Browse the repository at this point in the history
  • Loading branch information
pachonjcl committed Dec 19, 2024
1 parent 6c90fbd commit 2923716
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/Mail/PolygonOperationsComplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ public function __construct($site, $operation, $user, $completedAt)
])
->setCta('polygon-validation.cta');

$this->link = '/sites/' . $site->uuid;
if ($user->hasRole('project-developer')) {
$this->link = '/sites/' . $site->uuid;
} else {
$this->link = '/admin#/site/' . $site->uuid . '/show';
}

$this->transactional = true;
}
}

0 comments on commit 2923716

Please sign in to comment.