Activities of "liangshiwei"

Hi,

I have checked the project you provided and is works for me.

I only change the logger configure to write to the console.

Hi

Can you share the full steps to reproduce? thanks.

Hi,

There are two things, you mixed them up

You can check this: https://support.abp.io/QA/Questions/2684/IAbpClaimsPrincipalContributor-doesn%27t-work-in-microservice-project

Hi,

Ok, please email me when you are free.

I still could not reproduce the problem

Can you share a simple project with me? shiwei.liang@volosoft.com

Hi,

It will fail when changing the role name, but after refreshing the page everything works fine.

I did two things:

1: Rename IPermAppService to IPermissionAppAervice 2: https://support.abp.io/QA/Questions/3004#answer-0092715c-57b9-6445-6cc3-3a0394b8e680

Of course, it works for me.

Method Define of class PermissionDefinitionProvider is not an async method.

You can try this:

public override void Define(IPermissionDefinitionContext context)
{
    var permissionService = context.ServiceProvider.GetRequiredService<IPermAppService>();

    var myGroup = context.AddGroup(VoloTestPermissions.GroupName);

    myGroup.AddPermission(VoloTestPermissions.Dashboard.Host, L("Permission:Dashboard"), MultiTenancySides.Host);
    myGroup.AddPermission(VoloTestPermissions.Dashboard.Tenant, L("Permission:Dashboard"), MultiTenancySides.Tenant);

    var permissions = AsyncHelper.RunSync(()=> permissionService.GetPermissionListAsync(new GetPermissionInput())) ;
    //foreach (var perm in permissions)
    //{
    //    myGroup.AddPermission($"{perm.Name}.Allow", L($"{perm.Name}.Allow"));
    //    myGroup.AddPermission($"{perm.Name}.Deny", L($"{perm.Name}.Deny"));

}

Thanks, I will check it out.

Showing 5061 to 5070 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.