From deb93d7dd7593c8b4627b3690b77f6feb4c0b568 Mon Sep 17 00:00:00 2001 From: Toni Prieto Date: Thu, 18 Jun 2026 12:53:16 +0200 Subject: [PATCH] =?UTF-8?q?Make=20the=20=E2=80=9CNew=20collection=E2=80=9D?= =?UTF-8?q?=20menu=20option=20visible=20for=20Community=20Admins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/shared/menu/providers/new.menu.spec.ts | 2 +- src/app/shared/menu/providers/new.menu.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/shared/menu/providers/new.menu.spec.ts b/src/app/shared/menu/providers/new.menu.spec.ts index be900952c5b..2f25ed97277 100644 --- a/src/app/shared/menu/providers/new.menu.spec.ts +++ b/src/app/shared/menu/providers/new.menu.spec.ts @@ -38,7 +38,7 @@ describe('NewMenuProvider', () => { }, }, { - visible: false, + visible: true, model: { type: MenuItemType.ONCLICK, text: 'menu.section.new_collection', diff --git a/src/app/shared/menu/providers/new.menu.ts b/src/app/shared/menu/providers/new.menu.ts index e329fa64b52..2ae8b3edb9f 100644 --- a/src/app/shared/menu/providers/new.menu.ts +++ b/src/app/shared/menu/providers/new.menu.ts @@ -54,12 +54,11 @@ export class NewMenuProvider extends AbstractExpandableMenuProvider { public getSubSections(): Observable { return combineLatest([ - this.authorizationService.isAuthorized(FeatureID.IsCollectionAdmin), this.authorizationService.isAuthorized(FeatureID.IsCommunityAdmin), this.authorizationService.isAuthorized(FeatureID.AdministratorOf), this.authorizationService.isAuthorized(FeatureID.CanSubmit), this.authorizationService.isAuthorized(FeatureID.CoarNotifyEnabled), - ]).pipe(map(([isCollectionAdmin, isCommunityAdmin, isSiteAdmin, canSubmit, isCoarNotifyEnabled]: [boolean, boolean, boolean, boolean, boolean]) => { + ]).pipe(map(([isCommunityAdmin, isSiteAdmin, canSubmit, isCoarNotifyEnabled]: [boolean, boolean, boolean, boolean]) => { return [ { @@ -73,7 +72,7 @@ export class NewMenuProvider extends AbstractExpandableMenuProvider { }, }, { - visible: isCollectionAdmin, + visible: isCommunityAdmin, model: { type: MenuItemType.ONCLICK, text: 'menu.section.new_collection',