Hi Halil,
There's a case that needs your suggestion. Restaurant(a restaurant is a tenant in my case) staffs are tenant users for adding/updating restaurant informations (such that open hours, menu prices, events, pictures etc.,). All other people are registered as a host user and can search restaurant informations, order a table, comment, rate ...
It seems 'host users' are for 'admin' users. Am i right? But i want to create a new form that registers a user without a tenant. So all users except restaurant staffs are host users and tenants have no users other than staffs. Is it acceptable solution?
Thanks in advance.
2 Answer(s)
-
0
Hi,
That's possible as I understood.
Host users are not just admin users. You can think them as tenant-independent users. First, you should have a well understanding of multi-tenancy (<a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Multi-Tenancy#multi-tenancy-in-aspnet-boilerplate">http://www.aspnetboilerplate.com/Pages/ ... oilerplate</a>) and tenancy filters (<a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Data-Filters#DocMustHaveTenant">http://www.aspnetboilerplate.com/Pages/ ... HaveTenant</a>). After reading those documents; Your Restaurant and related entities can be IMustHaveTenant. This filter is disabled for host users (so, host users can see all) and enabled for a tenant user (so, a tenant user see only related tenant). You can create different roles in the host side that performs different actions on restaurants, for example.
I hope this information helps you. Have a nice day.
-
0
That's exactly what i want to hear. Thank you :)