hi
See https://docs.abp.io/en/abp/latest/Authorization#changing-permission-definitions-of-a-depended-module
group.AddPermission("MyPermission6").WithProviders(RolePermissionValueProvider.ProviderName);
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Authorization.Abstractions/Volo/Abp/Authorization/Permissions/PermissionDefinition.cs#L140-L148
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Authorization.Abstractions/Volo/Abp/Authorization/Permissions/PermissionDefinition.cs#L31-L35
The template project already did this.
See MyProjectNameTenantDatabaseMigrationHandler
https://github.com/abpframework/abp/blob/dev/modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionDataSeeder.cs#L28-L52
Yes.
hi
If the template project works, can you share a minimal project to reproduce your error?
liming.ma@volosoft.com
Thanks.
hi
https://github.com/advisories/GHSA-mrr8-v49w-3333
We will upgrade all packages except sweetalert2
Please follow https://github.com/abpframework/abp/pull/19356
hi
You can use different domains for your websites. The cookies are independent. eg: https://readme.localtest.me/
hi
This seems like a UI issue, I don't have any idea, you can continue debugging to see why the id is incorrect.
Thanks.
hi
You can get the MD file with your GitHub access token. That's no problem. But for images, you can't add the token to the request.
I think you can replace the URL of these images to redirect to your website instead of GitHub. On your website, you can pass the token to get the images from the Github private repo.
Thanks.
And make sure your websites are In-process-hosting
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/in-process-hosting?view=aspnetcore-8.0
hi
Please update TestService as below:
namespace TestProject8.Test
{
public class TestService: ApplicationService, ITestService
{
private IdentityUserManager _userManager;
private IDistributedCache<AbpDynamicClaimCacheItem> _dynamicClaimCache;
public TestService(IdentityUserManager userManager, IDistributedCache<AbpDynamicClaimCacheItem> dynamicClaimCache)
{
_userManager = userManager;
_dynamicClaimCache = dynamicClaimCache;
}
public async Task AddToRoleAsync(Guid id)
{
var user = await _userManager.FindByIdAsync(id.ToString());
if (user == null)
{
return;
}
await _userManager.AddToRoleAsync(user, "External");
await _dynamicClaimCache.RemoveAsync(AbpDynamicClaimCacheItem.CalculateCacheKey(user.Id, user.TenantId));
}
}
}
I will check others. Thank you.