From 7c1013113ca8aad31f805a615fa9772153b567bf Mon Sep 17 00:00:00 2001 From: Auldrin-Possa Date: Wed, 15 Oct 2025 15:33:31 +0100 Subject: [PATCH] TD-6351-Center specific details retrieved. --- .../DataServices/CourseDataService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)