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)
-
0
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.
-
0
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
-
0
Hi @Hakan,
AppPermissions.Pages_Editions is a host side page name. Do you login as host admin or tenant admin ?
-
0
Im host I think
public const bool MultiTenancyEnabled = false;
-
0
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.
-
0
Im satisfied :)
Thanks ismcagdas