Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to determine host admin #2083


User avatar
0
nexgen created

Hello What is the way of checking whether it is host admin? Is it just: (AbpSession.TenantId == null)


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

    Hi,

    No, it only shows that current user is a host user. If you mean all host users with admin role by "host admin", then you need to check current user's role as well. If you mean the host user with username = "admin", you need to check current user's username as well.