File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
DigitalLearningSolutions.Web/ServiceFilter Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public ValidateAllowedDlsSubApplication(
3232
3333 public void OnActionExecuted ( ActionExecutedContext context ) { }
3434
35- public async void OnActionExecuting ( ActionExecutingContext context )
35+ public void OnActionExecuting ( ActionExecutingContext context )
3636 {
3737 var user = context . HttpContext . User ;
3838 if ( ! user . Identity . IsAuthenticated )
@@ -48,7 +48,7 @@ public async void OnActionExecuting(ActionExecutingContext context)
4848 return ;
4949 }
5050
51- if ( application == null || await ApplicationIsInaccessibleByPage ( application ! ) )
51+ if ( application == null || Task . Run ( ( ) => ApplicationIsInaccessibleByPage ( application ! ) ) . Result )
5252 {
5353 SetNotFoundResult ( context ) ;
5454 return ;
You can’t perform that action at this time.
0 commit comments