We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3a3735 + 4393e59 commit 88dac10Copy full SHA for 88dac10
LearningHub.Nhs.WebUI/Controllers/SearchController.cs
@@ -306,6 +306,11 @@ public async Task<IActionResult> Image(string name)
306
public async Task<IActionResult> GetAutoSuggestion(string term)
307
{
308
var autoSuggestions = await this.searchService.GetAutoSuggestionList(term);
309
+ if (!this.User.Identity.IsAuthenticated)
310
+ {
311
+ return this.RedirectToAction("AccessDenied", "Home");
312
+ }
313
+
314
return this.PartialView("_AutoComplete", autoSuggestions);
315
}
316
0 commit comments