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)
-
0
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 theGetRolesAsync
method to custom.