From e4c2e2a3ca899353debb31b4cb2d7ab7eba84dd7 Mon Sep 17 00:00:00 2001 From: Auldrin Possa Date: Thu, 21 Nov 2024 12:40:25 +0000 Subject: [PATCH] TD-4406- Added check if admin account exists. --- .../Views/SuperAdmin/Users/UserCentreAccounts.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DigitalLearningSolutions.Web/Views/SuperAdmin/Users/UserCentreAccounts.cshtml b/DigitalLearningSolutions.Web/Views/SuperAdmin/Users/UserCentreAccounts.cshtml index 7cd9d4950b..6781c6bf1c 100644 --- a/DigitalLearningSolutions.Web/Views/SuperAdmin/Users/UserCentreAccounts.cshtml +++ b/DigitalLearningSolutions.Web/Views/SuperAdmin/Users/UserCentreAccounts.cshtml @@ -52,11 +52,11 @@ Roles:
- @if (centreRow.IsActiveAdmin) + @if (Model.UserEntity.AdminAccounts.Any()) { foreach (var admin in Model.UserEntity.AdminAccounts) { - if (centreRow.CentreId==admin.CentreId) + if (centreRow.CentreId == admin.CentreId) { Admin }