Base solution for your next web application
Open Closed

should redirect to error page instead of returning json data #1994


User avatar
0
ianmark89 created

When user does not have permissions to access Users controller, server responses {"result":null,"targetUrl":null,"success":false,"error":{"code":0,"message":"Required permissions are not granted. At least one of these permissions must be granted: Pages.Administration.Users","details":null,"validationErrors":null},"unAuthorizedRequest":true,"__abp":true}

It's working as expected if I update public async Task<ActionResult> Index()

to

public ActionResult Index()


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    This bug is fixed <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1551">https://github.com/aspnetboilerplate/as ... ssues/1551</a> and it will be in the next release of ABP.

    By the way, We have sent you a few emails but didn't get a reply from you. Can you check your emails ? They might gone to your spam folder.