Skip to content

Commit

Permalink
fix(users): update session the correct way (DSP-690) (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilchenmann committed Apr 19, 2021
1 parent 30294de commit 3ec049e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/system/users/users-list/users-list.component.ts
Expand Up @@ -266,7 +266,7 @@ export class UsersListComponent implements OnInit {
// open dialog to confirm and
// redirect to project page
// update the cache of logged-in user and the session
this._session.setSession(this.session.user.jwt, this.session.user.name, 'username');
this._session.setSession(this.session.user.jwt, this.session.user.name, 'username').subscribe();

if (this.sysAdmin) {
// logged-in user is system admin:
Expand Down Expand Up @@ -295,7 +295,7 @@ export class UsersListComponent implements OnInit {
} else {
// the logged-in user (system admin) added himself as project admin
// update the cache of logged-in user and the session
this._session.setSession(this.session.user.jwt, this.session.user.name, 'username');
this._session.setSession(this.session.user.jwt, this.session.user.name, 'username').subscribe();
this.refreshParent.emit();
}
},
Expand Down

0 comments on commit 3ec049e

Please sign in to comment.