Skip to content

Commit 215bd20

Browse files
authored
Merge pull request #3063 from TechnologyEnhancedLearning/Develop/Fixes/TD-5028-Supervise-Removestaffmemberdoesn'tremovethesupervisor(ForSupervisorwhenaddedvia'Addmyselftotryself-assessment')
TD-5028 Supervise - Remove staff member doesn't remove the supervisor (For Supervisor when added via 'Add myself to try self-assessment')
2 parents 79a5e4a + 752b4dd commit 215bd20

File tree

1 file changed

+0
-4
lines changed
  • DigitalLearningSolutions.Web/Controllers/SupervisorController

1 file changed

+0
-4
lines changed

DigitalLearningSolutions.Web/Controllers/SupervisorController/Supervisor.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ public IActionResult MyStaffList(
6060
var loggedInAdminUser = userService.GetAdminUserById(adminId);
6161
var centreRegistrationPrompts = centreRegistrationPromptsService.GetCentreRegistrationPromptsByCentreId(centreId);
6262
var supervisorDelegateDetails = supervisorService.GetSupervisorDelegateDetailsForAdminId(adminId, loggedInAdminUser.CategoryId);
63-
if (!supervisorDelegateDetails.Any())
64-
{
65-
supervisorDelegateDetails = supervisorService.GetSupervisorDelegateDetailsForAdminIdWithoutRemovedClause(adminId);
66-
}
6763
var isSupervisor = User.GetCustomClaimAsBool(CustomClaimTypes.IsSupervisor) ?? false;
6864
var allSupervisorDelegateDetailViewModels = supervisorDelegateDetails.Select(
6965
supervisor =>

0 commit comments

Comments
 (0)