I guess the IsDeleted field value of one of them is true
I will check it
The only way to affect this list that I can see it to replace dependency-injected service IdentityRoleService. However, as I have written before, I don't know how to do it properly (if possible).
Yes, you can do it, just:
[ExposeServices(typeof(IdentityUserAppService))]
public class MyIdentityRoleAppService : IdentityRoleAppService
{
public MyIdentityRoleAppService(IdentityRoleManager roleManager, IIdentityRoleRepository roleRepository, IIdentityClaimTypeRepository identityClaimTypeRepository) : base(roleManager, roleRepository, identityClaimTypeRepository)
{
}
public override Task<PagedResultDto<IdentityRoleDto>> GetListAsync(GetIdentityRoleListInput input)
{
return base.GetListAsync(input);
}
public override Task<ListResultDto<IdentityRoleDto>> GetAllListAsync()
{
return base.GetAllListAsync();
}
}
Hi,
I'm using the XCode version 14.3
I looked at the changes you made and the only significant one was to comment out one line in the RadixDealerPortalMauiClientModule.cs file. I did the same and still get the following error.
Actually, I made a lot of changes, you can use some comparison tools to compare.
BTW, Can you successfully run the project I sent you?
You can replace the component with yours and use the your own service to get roles. https://docs.abp.io/en/abp/latest/UI/Angular/Component-Replacement
I checked the project and email it to you.
You can compare the changes.
A.
I think there is no problem, but you need to make sure the startup project has its project reference and module dependency, otherwise, the application will not load the permission definitions.
b
You can override the repository to filter the roles.
[ExposeServices(typeof(IIdentityRoleRepository))]
public class MyEfCoreIdentityRoleRepository : EfCoreIdentityRoleRepository
{
public MyEfCoreIdentityRoleRepository(IDbContextProvider<IIdentityDbContext> dbContextProvider) : base(dbContextProvider)
{
}
override .....
}
OK, I will check it.
Hi,
You can check the api/abp/application-configuration endpoint.
It will return information about the current user, permission grant data, etc.