diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 13e134f..23e82c2 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -146,7 +146,7 @@ export class AppComponent { let isCommunityManager: boolean = false; if (Session.isCommunityCurator(this.user) || Session.isPortalAdministrator(this.user)) { isCommunityManager = true; - } else if (com.managers.indexOf(this.user.email) != -1) { + } else if (this.user && com.managers.indexOf(this.user.email) != -1) { isCommunityManager = true; } this.community = {