- Issue created by @cbuvaneswaran
- Status changed to Postponed: needs info
over 1 year ago 12:14pm 19 July 2023 - 🇧🇪Belgium RandalV
Hi @cbuvaneswaran,
It's possible the cache tag for that specific item needs to be cleared on changing roles, could you try adding the cache tag for that block to /admin/config/people/masquerade-role ?
Let me know if this didn't help in the end.
Changing the issue metadata accordingly.
- 🇮🇳India cbuvaneswaran
Hi @RandalV,
Yes, I configured and tried the "external tags to invalidate" option, but I am still facing the same issue. PFA(tab_id.png & config_settings.png) the configuration screenshots.
Regards,
Buvaneswaran - Status changed to Needs work
over 1 year ago 2:09pm 20 July 2023 - 3a37ce66 committed on 1.0.x
Fix for #3375148: Role restricted block is showing after role switch
- 3a37ce66 committed on 1.0.x
- Status changed to Fixed
over 1 year ago 1:12pm 22 July 2023 - 🇧🇪Belgium RandalV
Hi @cbuvaneswaran,
Thanks for reporting the issue and providing all the steps and valuable information.
I was able to reproduce and solve the issue. Sadly, solving it wasn't possible without overwriting the User entity class, something I would've rather avoided.
Beware of other modules that might also do this, because one might have precedence over the other and remove the changes the other one added.I've added a new release with this fix.
Please, let me know if there's anything else or if the fix doesn't seem sufficient.
From my tests, it works well now. Automatically closed - issue fixed for 2 weeks with no activity.