Skip to content

User roles/capabilities change doesn't clear the token cache #516

@richard-julien

Description

@richard-julien

Description

When changing a user role or a role capabilities used by a role, the redis cache is not cleared.

Actual Output

Some part of the UI are available or not but the backend is not sync with actual capabilities.

Expected Output

When admin change a user roles, the user cache is invalidated on the API.
When user refresh his browser, everything is reloaded correctly.
If the user have no longer access to some UI part, the next query will redirect the user to the home if the capabilities are no longer available

Metadata

Metadata

Labels

buguse for describing something not working as expectedsolveduse to identify issue that has been solved (must be linked to the solving PR)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions