Skip to content
Permalink
Browse files
fix(project): Bug fix in project view when not logged-in (#339)
  • Loading branch information
kilchenmann committed Dec 9, 2020
1 parent e1e8b91 commit ce5acf11b28309674e75fdaf15ead60dbb4bcc96
Showing with 3 additions and 1 deletion.
  1. +3 −1 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;
},

0 comments on commit ce5acf1

Please sign in to comment.