diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 85057a6..b72264e 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -259,10 +259,18 @@ export class AppComponent implements OnInit, OnDestroy { rootItem: new MenuItem("dashboard", "Dashboard", "", "/" + this.stakeholder.alias, false, [], null, {}), items: [] }); - this.menuItems.push({ - rootItem: new MenuItem("develop", "Develop", - "", "/" + this.stakeholder.alias + "/develop", false, [], null, {}), items: [] - }); + if(this.stakeholder.type === "funder") { + this.menuItems.push({ + rootItem: new MenuItem("develop", "Develop", + "", "/" + this.stakeholder.alias + "/develop", false, [], null, {}), items: [] + }); + } + if (this.isCurator()) { + this.menuItems.push({ + rootItem: new MenuItem("manage", "Manage", + "", "/admin", false, [], null, {}), items: [] + }); + } } else if (this.isFrontPage) { this.menuHeader = { @@ -286,7 +294,6 @@ export class AppComponent implements OnInit, OnDestroy { rootItem: new MenuItem("manage", "Manage", "", "/admin", false, [], null, {}), items: [] }); - } if (this.isPublicOrIsMember(this.stakeholder.visibility)) {