Hi,
Yes, it's a bug, we will fix it in the 6.0 version, and your ticket refunded.
Hi,
I will check it out.
Hi,
I will check it out
Since you are a commercial customer, you can get support here, Commercial customers have the highest priority.
If it's a bug, we will refund your ticket.
Hi,
Can you share a project with me? shiwei.liang@volosoft.com I will check it out.
Hi,
You can check this: https://support.abp.io/QA/Questions/3327/#answer-51baf847-087a-2aa1-1d76-3a04d9420894
Hi,
Yes, AbpRefreshEditionIdFilter
was a problem, you can use the following code:
public class AbpRefreshEditionIdFilter : IHubFilter
{
public virtual async ValueTask<object> InvokeMethodAsync(HubInvocationContext invocationContext,
Func<HubInvocationContext, ValueTask<object>> next)
{
var currentTenant = invocationContext.ServiceProvider.GetRequiredService<ICurrentTenant>();
var currentUser = invocationContext.ServiceProvider.GetRequiredService<ICurrentUser>();
if (!currentUser.IsAuthenticated || !currentUser.TenantId.HasValue)
{
return await next(invocationContext);
}
var tenantStore = invocationContext.ServiceProvider.GetRequiredService<ITenantRepository>();
var currentPrincipalAccessor = invocationContext.ServiceProvider.GetRequiredService<ICurrentPrincipalAccessor>();
var tenant = await tenantStore.FindAsync(currentTenant.GetId());
var claimsIdentity = currentPrincipalAccessor.Principal.Identities.First();
var editionId = tenant.GetActiveEditionId();
if (editionId != null)
{
claimsIdentity.AddOrReplace(new Claim(AbpClaimTypes.EditionId, editionId.Value.ToString()));
}
else
{
foreach (var x in claimsIdentity.FindAll(AbpClaimTypes.EditionId).ToList())
{
claimsIdentity.RemoveClaim(x);
}
}
using (currentPrincipalAccessor.Change(claimsIdentity))
{
return await next(invocationContext);
}
}
}
Hi,
it's on our roadmap, but not a high priority. if you need this, you can implement it yourself
Hi,
Got it, checking.
HI,
May I ask which UI and ABP version are you using?