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

How to hide columns from Tenants #5326


User avatar
0
FahrettinOzturk created

Hello guys,

Is there a way to hide some columns from Tenants? For example, as a Host I need to see the Tenant Information on a page which a Tanant capable to access to the same page as wll. So, the Tenant shouldn't be able to see that column or the information.

Thanks.


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You can judge the current user return information in the program. Even the same DTO. You can "eras out" the relevant data after the query.

    Of course, you can also write two application service methods and two DTOs to call the display for different identity users.

    I hope the above can help you. :)

  • User Avatar
    0
    alper created
    Support Team

    Hide the inputs when a tenant user is logged in. And use a different DTO for tenants. You can get the current UserId and TenantId with AbpSession. See <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Abp-Session">https://aspnetboilerplate.com/Pages/Doc ... bp-Session</a>