Base solution for your next web application

Activities of "Astech"

As an addition point, we have attempted to follow the instructions in the following guide:

https://aspnetboilerplate.com/Pages/Documents/Articles\How-To\add-custom-data-filter-ef-core

However user.OrganizationUnitId is always null in the UserClaimsPrincipalFactory?

We also noticed that there was already a list of OrganizationUnits in the User.cs class:

public List<UserOrganizationUnit> OrganizationUnits { get; set; }

However it also seems to be null in UserClaimsPrincipalFactory depite the User being in an OU.

Are we missing something?

Hi,

We are relatively new to Zero and are wanting to add a permission based system to the entities that we create. We have seen the following URL which suggests using Organisation Units:

https://support.aspnetzero.com/QA/Questions/7163/More-detailed-permissions-per-entity

It links to this guide:

https://aspnetboilerplate.com/Pages/Documents/Articles\How-To\add-custom-data-filter-ef-core

The guide details how to have a single OU associated to a user, however in our business model both users and entities can have multiple OUs associated. So for example, an entity may have 3 OUs associated that can access it. A user may be in 5 OUs. As long as one of the OUs matches, they will have access.

Is there a method/guide for acheiving this?

As an additional question is there a premade UI control that we can plug into for the entity OU selection? We have spotted the lookup modal. Should we use this to lookup OUs and allow multi selection of them for each entity or is there a more "built in" way of handling such entity permissions?

We are using the latest Zero version for .NET Core/Jquery.

Thanks in advance

Scott

Showing 71 to 72 of 72 entries