cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable Repository button in the header?

borisstankov
Champ in-the-making
Champ in-the-making
Hello guys,

I was wondering if there is easy way to restrict non Admin users to not see "Repository" button (the button in the header of every page - in the same header where the HOME button is located).

Regards!
4 REPLIES 4

niketapatel
Star Contributor
Star Contributor

Thank you for your post. I'll check them closely. Smiley Happy

eswbitto
Confirmed Champ
Confirmed Champ
I've successfully been able to remove headers per nike's link. The amp file will remove headers based on a group.

Hello guys,

Thanks for the notes. I managed to disable the Repository button for non admin users with the notes in this 3-part blog, not from the first try, but after few tests everything is OK now.

I put in share-header.get.js

// Find the "Repository" menu…
if (!user.isAdmin)
{
  widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_REPOSITORY");
}


And also did some changes in blog-extension-3.xml - just to point where to search for it.

Along with it I managed to disable SiteFound and CreateNewSite buttons. Smiley Happy

All the Best,
Boris

Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.