Base solution for your next web application
Open Closed

HTTP Error 403.0 - Required permissions are not granted. #4000


User avatar
0
hakan created

HTTP Error 403.0 - Required permissions are not granted. At least one of these permissions must be granted:

How to handle Authorization Exception , is there any abp client scripts ?

Im using mvc jquery


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

    Hi @Hakan,

    How do you get this error message ? Can you write steps to reproduce it ? Maybe app is showing a page/button that user cannot see.

    Thanks.

  • User Avatar
    0
    hakan created

    Hi

    I log in as Admin and redirect to "testcontroller" and get the error in debug mode

    I use the attribute over a class in the "testcontroller" in MVC

    [AbpMvcAuthorize(AppPermissions.Pages_Editions]
    Public class testController : BaseController
    {...
    

    The latest version

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Hakan,

    AppPermissions.Pages_Editions is a host side page name. Do you login as host admin or tenant admin ?

  • User Avatar
    0
    hakan created

    Im host I think

    public const bool MultiTenancyEnabled = false;

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Hakan,

    public const bool MultiTenancyEnabled = false;
    

    This line means, multi tenancy is disabled, so there cannot be host users in this context.

    And, if multi tenancy is disabled, you cannot use host permissions.

    If you want to use multi tenancy, you can enable it like this:

    public const bool MultiTenancyEnabled = true;
    

    then you can login as host admin.

    If you want to develop an application without multi tenancy, then you need to use another permission instead of Editions page.

  • User Avatar
    0
    hakan created

    Im satisfied :)

    Thanks ismcagdas