diff --git a/DigitalLearningSolutions.Data/DataServices/CourseDataService.cs b/DigitalLearningSolutions.Data/DataServices/CourseDataService.cs index 06196293a0..89ba36cfa6 100644 --- a/DigitalLearningSolutions.Data/DataServices/CourseDataService.cs +++ b/DigitalLearningSolutions.Data/DataServices/CourseDataService.cs @@ -514,7 +514,8 @@ INNER JOIN Users AS U LEFT OUTER JOIN UserCentreDetails AS UCD ON DA.UserID = UCD.UserID AND DA.CentreID = UCD.CentreID - WHERE (DA.UserID = @delegateUserId)", new { supervisorId, delegateUserId, adminEmail }); + WHERE (DA.UserID = @delegateUserId AND DA.CentreID = @centreId)", + new { supervisorId, delegateUserId, adminEmail, centreId }); } if (candidateAssessmentId > 0 && supervisorDelegateId > 0 && selfAssessmentSupervisorRoleId > 0)