Skip to content

Commit

Permalink
Reloading CurrentUserStore when updated user is the current user. (#…
Browse files Browse the repository at this point in the history
…2706)

Fixes #2705.
  • Loading branch information
dennisoelkers authored and edmundoa committed Aug 18, 2016
1 parent 8d7cd40 commit 4557795
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions graylog2-web-interface/src/components/users/UserForm.jsx
Expand Up @@ -111,6 +111,9 @@ const UserForm = React.createClass({
if (this.isPermitted(this.state.currentUser.permissions, ['users:list'])) {
this.props.history.replaceState(null, Routes.SYSTEM.AUTHENTICATION.USERS.LIST);
}
if (this.props.user.username === this.state.currentUser.username) {
CurrentUserStore.reload();
}
}, () => {
UserNotification.error('Could not update the user. Please check your logs for more information.', 'Updating user failed');
});
Expand Down

0 comments on commit 4557795

Please sign in to comment.