abpframework / eShopOnAbp

Reference microservice solution built with the ABP Framework and .NET, runs on Kubernetes with Helm configuration, includes API Gateways, Angular and ASP.NET Core MVC applications, PostgreSQL and MongoDB databases
https://www.eShopOnAbp.com/
MIT License
664 stars 259 forks source link

Update Permission User but do not render Sidemenu. #234

Closed StevenNgoc closed 4 months ago

StevenNgoc commented 5 months ago

I run Example eShopOnAbp in local evironment. My problem, when update permission with permission-managent module in Administration Service.

  1. Update in identity/roles -> Sidemenu auto render (ThemeLeptonX)
  2. But update in identity/users nothing happens

I check code step by step and detection permission dont update in caching ( I use redis). Both UI call api is the same (/api/permission-management/permissions - Put method). Please help me how fix my problem. Thanks all

StevenNgoc commented 4 months ago

I fixed it. My mistake is UserID different in Keycloak and Identity Service. When caching, function load from redis with Keycloak's UserID but in function save permission used Identity Service's UserID. My plan : copy id in keycloak service to id in identity service(delete FK in AbpUserRoles).

gterdem commented 4 months ago

Nice to hear your problem is being solved. Closing the issue.