diff --git a/app/Mail/PolygonOperationsComplete.php b/app/Mail/PolygonOperationsComplete.php index 3d7b7472..8ed1f48e 100644 --- a/app/Mail/PolygonOperationsComplete.php +++ b/app/Mail/PolygonOperationsComplete.php @@ -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; } }