Skip to content

Commit f2ea7f4

Browse files
authored
Merge pull request #2962 from TechnologyEnhancedLearning/Develop/Fix/TD-4406-Issue-not-showing--Admin-links
TD-4406- Super Admin: Issue not showing the 'Admin' links for the centres when user account is reactivated on 'User centre roles' screen
2 parents 74338b4 + e4c2e2a commit f2ea7f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DigitalLearningSolutions.Web/Views/SuperAdmin/Users/UserCentreAccounts.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
<td role="cell" class="nhsuk-table__cell choose-centre-td">
5353
<span class="nhsuk-table-responsive__heading">Roles: </span>
5454
<div class="centre-role-tags">
55-
@if (centreRow.IsActiveAdmin)
55+
@if (Model.UserEntity.AdminAccounts.Any())
5656
{
5757
foreach (var admin in Model.UserEntity.AdminAccounts)
5858
{
59-
if (centreRow.CentreId==admin.CentreId)
59+
if (centreRow.CentreId == admin.CentreId)
6060
{
6161
<a asp-action="RedirectToAdmin" asp-route-AdminId="@admin.Id">Admin</a>
6262
}

0 commit comments

Comments
 (0)