public ngOnInit(): void {
// eslint-disable-next-line security/detect-non-literal-fs-filename
const modalRef: NgbModalRef = this.modalService.open(AddEditUserComponent, { backdrop: 'static', keyboard: false });
- modalRef.componentInstance.userID = localStorage.getItem('user_id');
+ modalRef.componentInstance.userID = sessionStorage.getItem('user_id');
if (this.editType === 'changePassword') {
modalRef.componentInstance.userTitle = this.translateService.instant('PAGE.USERS.EDITCREDENTIALS');
}