Skip to content

Commit

Permalink
Fix sign out when user has no roles (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Dec 8, 2023
1 parent d6de6b2 commit 6e9ce9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public async Task OnResourceExecutionAsync(ResourceExecutingContext context, Res
{
var user = context.HttpContext.User;

if (user.Identity?.IsAuthenticated == true && !user.IsActiveTrsUser())
if (user.Identity?.IsAuthenticated == true && !user.IsActiveTrsUser() && context.HttpContext.Request.Path != "/sign-out")
{
var viewResult = new ViewResult()
{
Expand Down

0 comments on commit 6e9ce9c

Please sign in to comment.