Skip to content

Commit

Permalink
LDN Service link always visible to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
frabacche committed Feb 22, 2024
1 parent 1f80d7f commit e4a0340
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app/menu.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,8 @@ export class MenuResolver implements Resolve<boolean> {
this.authorizationService.isAuthorized(FeatureID.AdministratorOf),
this.authorizationService.isAuthorized(FeatureID.CanSubmit),
this.authorizationService.isAuthorized(FeatureID.CanEditItem),
this.authorizationService.isAuthorized(FeatureID.CanSeeQA),
this.authorizationService.isAuthorized(FeatureID.CoarNotifyEnabled)
]).subscribe(([isCollectionAdmin, isCommunityAdmin, isSiteAdmin, canSubmit, canEditItem, canSeeQa, coarNotifyEnabled]) => {
this.authorizationService.isAuthorized(FeatureID.CanSeeQA)
]).subscribe(([isCollectionAdmin, isCommunityAdmin, isSiteAdmin, canSubmit, canEditItem, canSeeQa]) => {
const newSubMenuList = [
{
id: 'new_community',
Expand Down Expand Up @@ -368,7 +367,7 @@ export class MenuResolver implements Resolve<boolean> {
{
id: 'ldn_services',
active: false,
visible: coarNotifyEnabled && isSiteAdmin,
visible: isSiteAdmin,
model: {
type: MenuItemType.LINK,
text: 'menu.section.services',
Expand Down

0 comments on commit e4a0340

Please sign in to comment.