hi
Can you share a simple project to reproduce the problem?
I will download the code and debug it locally.
liming.ma@volosoft.com
Thanks.
Hi
Please share the DLL file with liming.ma@volosoft.com
Hi
Can you try to remove the package-lock.json and yarn.lock files then re-run the abp install-libs command?
hi
The libs
folder is restored based on the package.json
file.
Please check and compare the code of this file.
Great. : )
hi
ok.
Because the PermissionDataSeeder
just inserts the data.
"AccountIntegrations.Create",
"AccountIntegrations.Edit",
"AccountIntegrations.Delete",
"BasketReturn.Create"
You can debug this code to see await PermissionGrantRepository.InsertManyAsync(permissions);
var accPermissions = new[]
{
"AccountIntegrations.Create",
"AccountIntegrations.Edit",
"AccountIntegrations.Delete",
};
var names = accPermissions.ToArray();
var existsPermissionGrants = (await PermissionGrantRepository.GetListAsync(names, RolePermissionValueProvider.ProviderName, cashRoleName)).Select(x => x.Name).ToList();
var permissions = names.Except(existsPermissionGrants).Select(permissionName => new PermissionGrant(GuidGenerator.Create(), permissionName, RolePermissionValueProvider.ProviderName, cashRoleName, tenantId)).ToList();
if (!permissions.Any())
{
return;
}
await PermissionGrantRepository.InsertManyAsync(permissions);
hi
Can you share a simple project to reproduce the problem?
I will download the code and debug it locally.
liming.ma@volosoft.com
Thanks.
hi
I have checked the video. Code seems to be no problem.
The PermissionDataSeeder will insert the records into the AbpPermissionGrant table. Can you check if the insert succeeds?