Skip to content

Commit c3e63fb

Browse files
authored
Merge pull request #2848 from TechnologyEnhancedLearning/Develop/Features/TD-4383-Warncentreadminsthatactiveadminaccountexistswheninactivatingdelegateaccount
TD-4383 Removing of Active from the Admin Role
2 parents 787b59d + a87f9a0 commit c3e63fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DigitalLearningSolutions.Web/Controllers/TrackingSystem/Delegates/DeactivateDelegateController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public IActionResult Index(DeactivateDelegateAccountViewModel deactivateDelegate
8686
if (adminAccount != null)
8787
{
8888
var adminentity = new AdminEntity(adminAccount, userEntity.UserAccount, null);
89-
roles = FilterableTagHelper.GetCurrentTagsForAdmin(adminentity).Where(s => s.Hidden == false)
89+
roles = FilterableTagHelper.GetCurrentTagsForAdmin(adminentity).Where(s => s.Hidden == false && s.DisplayText != "Active")
9090
.Select(d => d.DisplayText).ToList<string>();
9191
}
9292
return roles;

0 commit comments

Comments
 (0)