Skip to content

Commit

Permalink
Return 403 when missing permissions instead of 401
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmania committed May 10, 2024
1 parent e9074ea commit b4b512d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public override void OnActionExecuting(ActionExecutingContext context)
Type = "Error",
};

context.Result = new ObjectResult(problemDetails) { StatusCode = StatusCodes.Status401Unauthorized };
context.Result = new ObjectResult(problemDetails) { StatusCode = problemDetails.Status };
}

protected abstract int[] GetUserStartNodeIds(IUser user, ActionExecutingContext context);
Expand Down

0 comments on commit b4b512d

Please sign in to comment.