1
0
Fork 0
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:
Dakota Walsh 2022-12-14 10:12:00 +13:00 committed by GitHub
parent 930d9e5628
commit 0ddcad66f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View file

@ -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);
};