Base solution for your next web application
Open Closed

Skip Tenant Permissions If you are a host. #9700


User avatar
0
cangunaydin created

Hello i am using, Asp.net Zero v8.1.0 with Angular Abp version 5.4.0

this is most likely a general question about Abp Framework but i couldn't figure it out how to do this.

Is it possible for host users to skip the permissions when they do a backend call? Like let's say one method needs a tenant permission like 'Pages.Tenant.Dashboard' if you are a host user,then you should be able to call the method too. Since you can not give tenant permissions to a host user. Any idea about it?

Thank you for the assistance.


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

    Hi @cangunaydin

    There is no feature like that by default. If host users are also calling the same app service, then you can change the scope of the permission, so you can grant host users to this permission.

    If you don't want to do that, you need to check permission inside of the method and ignore it for host users.