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)
-
0
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. :)
-
0
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>