Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(users): update session the correct way (DSP-690) #419

Merged
merged 1 commit into from Apr 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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