[Trunk | Connect]: app.component.ts: [Bug fix] Check if user is not undefined or null.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@57083 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
91d0246b62
commit
bec026f9f3
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue