Base solution for your next web application
Open Closed

Organisation Unit Implementation help #8382


User avatar
0
JakeMem created

I am trying to implement OU in my application. Application has an entity called "Project" which has one to Many Relation with "DataModules". Projects and DataModules has restricted access to User based on their Individual Roles assigned per Project per DataModules.Permission such as "Create_a_Project" / "Edit_A_DataModule" can be assigned to a User to Create a New Project. or Editing and many more permission.

Current Requirement is to map Project and DataModules to Project to User, Roles and DataModules to User, Roles.I have checked Organisation Unit which has very similar functionality, but I am wondering with the permission, permission itself is linked with the Roles.

Suppose, If OU's has a member which does not have permission to "Create_a_Project" Role before and now assigned with new Role(without adding in Permission) in OU, would the user granted to Create_a_Project? Authorization will work as its designed without entry in abppermissions table, meaning it would override the permission?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    JakeMem created

    Hi Team, Please update!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @JakeMem

    Sorry for the delay. Answer to your question is Yes. User will get his/her own assigned permissions directly or via user's roles and user's roles assigned via user's OUs.

    Here is the related code https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.ZeroCore/Authorization/Users/AbpUserStore.cs#L709

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please create a new issue if you are still having this problem.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)