Skip to content
Permalink
Browse files
fix(users): update session the correct way (DSP-690) (#419)
  • Loading branch information
kilchenmann committed Apr 19, 2021
1 parent 30294de commit 3ec049e76df1c66a80026f0cb1d83bfea5178319
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/system/users/users-list/users-list.component.ts
@@ -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:
@@ -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();
}
},

0 comments on commit 3ec049e

Please sign in to comment.