From 206389399fe147bc29805eea0e7fe1c614b468ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?= Date: Tue, 8 Dec 2020 14:32:13 +0100 Subject: [PATCH] fix(project): Bug fix in project view when not logged-in --- src/app/project/board/board.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/project/board/board.component.ts b/src/app/project/board/board.component.ts index d6d2b37857..39aef68226 100644 --- a/src/app/project/board/board.component.ts +++ b/src/app/project/board/board.component.ts @@ -86,7 +86,9 @@ export class BoardComponent implements OnInit { this.project = response.body.project; // is logged-in user projectAdmin? - this.projectAdmin = this.sysAdmin ? this.sysAdmin : this.session.user.projectAdmin.some(e => e === this.project.id); + if (this._session.getSession()) { + this.projectAdmin = this.sysAdmin ? this.sysAdmin : this.session.user.projectAdmin.some(e => e === this.project.id); + } this.loading = false; },