projects
/
osm
/
NG-UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coverity-CWE 922: Insecure Storage of Sensitive Information(localStorage write)
[osm/NG-UI.git]
/
src
/
app
/
dashboard
/
DashboardComponent.ts
diff --git
a/src/app/dashboard/DashboardComponent.ts
b/src/app/dashboard/DashboardComponent.ts
index
23e928f
..
d49f708
100644
(file)
--- a/
src/app/dashboard/DashboardComponent.ts
+++ b/
src/app/dashboard/DashboardComponent.ts
@@
-202,7
+202,7
@@
export class DashboardComponent implements OnInit {
*/
public ngOnInit(): void {
this.username$ = this.authService.username;
*/
public ngOnInit(): void {
this.username$ = this.authService.username;
- this.isAdmin = (
local
Storage.getItem('isAdmin') === 'true') ? true : false;
+ this.isAdmin = (
session
Storage.getItem('isAdmin') === 'true') ? true : false;
this.selectedProject = this.authService.ProjectName;
this.checkAdminPrivilege();
this.getUserAccessedProjects();
this.selectedProject = this.authService.ProjectName;
this.checkAdminPrivilege();
this.getUserAccessedProjects();