Skip to content

Commit 08625bf

Browse files
authored
Merge pull request #2864 from TechnologyEnhancedLearning/Develop/Fixes/TD-4755-MyAccount-ActivevalueislistedasoneoftheAdminroles
TD-4755 My Account - Active value is listed as one of the Admin roles
2 parents d78d8dd + ae399db commit 08625bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DigitalLearningSolutions.Web/Controllers/MyAccountController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ DlsSubApplication dlsSubApplication
588588
{
589589
var adminentity = new AdminEntity(adminAccount, userEntity.UserAccount, null);
590590
CultureInfo currentCulture = System.Threading.Thread.CurrentThread.CurrentCulture;
591-
roles = FilterableTagHelper.GetCurrentTagsForAdmin(adminentity).Where(s => s.Hidden == false)
591+
roles = FilterableTagHelper.GetCurrentTagsForAdmin(adminentity).Where(s => s.Hidden == false && s.DisplayText != "Active")
592592
.Select(d => d.DisplayText).ToList<string>();
593593
}
594594
return roles;

0 commit comments

Comments
 (0)