Base solution for your next web application
Open Closed

Specific Data Load Identity #669


User avatar
0
hasan created

Hello Sir

I would like to ask whether this is possible using ASP.net Identity

In my multi tenant application ( Building Application for Syncing Sales of all Restaurants), each tenant can have many restaurants, each restaurant will have specific user in charge.

Whenever the user logs in, only the specific restaurant details should be edited or accessible based on Permissions . If the user has all the restaurant enable and its permissions , he will be able to do the operations.

Is it possible to solved in ASP.net Zero ?

Thanks again


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

    Hi,

    User already can access to own tenant's restaurants, no problem with that (Surely, you must implement IMustHaveTenant for the restaurant entity: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Multi-Tenancy#data-filters">http://www.aspnetboilerplate.com/Pages/ ... ta-filters</a>). If you further create a per-restaurant permission for users, you can implement your own solution since restaurant entity is out of ASP.NET identity entities. You can create a N-to-N table for user to restaurant permissions and check this table. (Also, you may want to use organization units for that if it fits into your requirements)