mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 07:15:23 +02:00
fix(auth): invalidate session when permissions change EE-3320 (#8103)
This commit is contained in:
parent
930d9e5628
commit
0ddcad66f3
2 changed files with 8 additions and 4 deletions
|
@ -52,6 +52,9 @@ function StateManagerFactory(
|
|||
};
|
||||
|
||||
manager.resetPasswordChangeSkips = function (userID) {
|
||||
if (!state.UI.timesPasswordChangeSkipped) {
|
||||
return;
|
||||
}
|
||||
if (state.UI.timesPasswordChangeSkipped[userID]) state.UI.timesPasswordChangeSkipped[userID] = 0;
|
||||
LocalStorage.storeUIState(state.UI);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue