Skip to content

Commit

Permalink
fix(project): Bug fix in project view when not logged-in (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
André Kilchenmann committed Dec 9, 2020
1 parent e1e8b91 commit ce5acf1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/project/board/board.component.ts
Expand Up @@ -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;
},
Expand Down

0 comments on commit ce5acf1

Please sign in to comment.