Skip to content

Commit 88dac10

Browse files
Merge pull request #736 from TechnologyEnhancedLearning/Develop/Fixes/TD-4870-Time-Out-issue-in-search-Page
TD-4870: Timeout page not showing properly in search page.
2 parents b3a3735 + 4393e59 commit 88dac10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

LearningHub.Nhs.WebUI/Controllers/SearchController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,11 @@ public async Task<IActionResult> Image(string name)
306306
public async Task<IActionResult> GetAutoSuggestion(string term)
307307
{
308308
var autoSuggestions = await this.searchService.GetAutoSuggestionList(term);
309+
if (!this.User.Identity.IsAuthenticated)
310+
{
311+
return this.RedirectToAction("AccessDenied", "Home");
312+
}
313+
309314
return this.PartialView("_AutoComplete", autoSuggestions);
310315
}
311316
}

0 commit comments

Comments
 (0)