Starts in:
0 DAY
13 HRS
5 MIN
51 SEC
Starts in:
0 D
13 H
5 M
51 S
Open Closed

About role inheritance #5176


User avatar
0
portx-dev created

In ABP users and subunits do not seem to inherit roles from higher units (e.g. parent's parent's unit) other than the role of their directly parent unit. What should I do if I want users and subunits /be able to inherit the roles of a superior unit other than their directly parent unit?

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUserStore.cs#L369-L381

    This is by design. You can replace the IdentityUserStore to override the GetRolesAsync method to custom.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06