-2

I am currently working on the alfresco community edition 5.2.

Now i am working on customizing the header option for non admin user. Now i am trying to disable leave site button for the non admin user in alfresco.

So can anyone give me solution for this problem.

Thanks and regards, Amar.

amar7295
  • 1
  • 1

1 Answers1

2

It's easy to hide rather disabling the menu action. You have to extend, share-header.get.js and you can use the below code.

if (!user.isAdmin) {
  widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_LEAVE_SITE");
}

You can refer the below link also. https://hub.alfresco.com/t5/alfresco-content-services-forum/disable-button-quot-leave-site-quot-from-the-header-on-alfresco/m-p/79956

HTH