hi
What steps and code have you applied to the layout/theme?
Can you share the csproj
file content for your web project?
hi
Inject the ICurrentPrincipalAccessor
and IUserClaimsPrincipalFactory<IdentityUser>
var identityUser =
using (CurrentPrincipalAccessor.Change(await UserClaimsPrincipalFactory.CreateAsync(identityUser)))
{
}
hi
You have changed the user
entity. but the CurrentUser
values from HttpContext.User
The HttpContext.User
values come from cookies
or jwt token
. They are static in the current request and will update from the user
entity in the next HTTP request.
That's why you have to change the current principal
hi
You can only change the current principal.
hi
Both Dynamic C# API Client Proxies
and Static C# API Client Proxies
can be used.
https://abp.io/support/questions/1727/How-to-build-winform-application-client-for-Dynamic-C-API-Client-Proxies
hi
You can share your project via https://wetransfer.com/
liming.ma@volosoft.com
Thanks.
hi
You can try
BundleManager
to remove the WatchChanges
Thanks.
hi
isGranted variable doesn't relfect the latest value when role is updated in this method before get to this line,
You can Changing the Current Principal
and then check the permission.
https://abp.io/docs/latest/framework/infrastructure/current-user#changing-the-current-principal
The permission check will use the values from CurrentUser
.
hi
Is there a AbpLicenseCode
in your appsettings.json
?
And see https://abp.io/support/questions/817/How-to-delete-current-license-login-session#answer-4cbc8f13-c7f3-84fa-7fc8-39fa2688df13
hi
I will ask our team.