From ce5acf11b28309674e75fdaf15ead60dbb4bcc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kilchenmann?= Date: Wed, 9 Dec 2020 09:07:50 +0100 Subject: [PATCH] fix(project): Bug fix in project view when not logged-in (#339) --- 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; },