Skip to content

Commit 2049905

Browse files
TD-5715: My accessed learning tray - navigation link doesn't work
1 parent e446a00 commit 2049905

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

LearningHub.Nhs.WebUI/Controllers/HomeController.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ public async Task<IActionResult> LoadPage(string dashBoardTray = "my-learning",
280280
Catalogues = new Nhs.Models.Dashboard.DashboardCatalogueResponseViewModel { Type = catalogueDashBoard },
281281
};
282282

283+
var enableMoodle = Task.Run(() => this.featureManager.IsEnabledAsync(FeatureFlags.EnableMoodle)).Result;
284+
this.ViewBag.EnableMoodle = enableMoodle;
285+
this.ViewBag.ValidMoodleUser = this.CurrentMoodleUserId > 0;
286+
283287
bool isAjax = this.HttpContext.Request.Headers["X-Requested-With"] == "XMLHttpRequest";
284288

285289
if (isAjax)

0 commit comments

Comments
 (0)