cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling some header options for user

amar7295
Champ on-the-rise
Champ on-the-rise

hello,

I want to disable some header options for the user not for the admin.

 I have tried by making changes in share-header.get.properties, but it applies only for admin.

I want to apply these changes for the user instead of admin.

I have used this code. I have tried by changing the user name instead of admin, but there is no change in the user's header.

Please help me with this.

kind regards,

Amar.

1 ACCEPTED ANSWER

abhinavmishra14
World-Class Innovator
World-Class Innovator

You can extend share header and add check for admin user like:

//In share-header.get.js:: 

if (!user.isAdmin == true) {

//Remove the menu item for no admin users by finding the required item. 

}

Refer this documentation for share header: 

https://docs.alfresco.com/6.2/tasks/dev-extensions-share-tutorials-custom-share-header-menu.html

https://docs.alfresco.com/6.2/tasks/dev-extensions-share-tutorials-custom-header-menu-item-removal.h...

To learn more on extension modules refer: 

https://docs.alfresco.com/5.2/concepts/dev-extensions-share-surf-extension-modules.html

https://docs.alfresco.com/5.2/concepts/dev-extensions-share-override-ootb-surf-webscripts.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View answer in original post

3 REPLIES 3

abhinavmishra14
World-Class Innovator
World-Class Innovator

You can extend share header and add check for admin user like:

//In share-header.get.js:: 

if (!user.isAdmin == true) {

//Remove the menu item for no admin users by finding the required item. 

}

Refer this documentation for share header: 

https://docs.alfresco.com/6.2/tasks/dev-extensions-share-tutorials-custom-share-header-menu.html

https://docs.alfresco.com/6.2/tasks/dev-extensions-share-tutorials-custom-header-menu-item-removal.h...

To learn more on extension modules refer: 

https://docs.alfresco.com/5.2/concepts/dev-extensions-share-surf-extension-modules.html

https://docs.alfresco.com/5.2/concepts/dev-extensions-share-override-ootb-surf-webscripts.html

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

Thanks for the solution.

EddieMay
World-Class Innovator
World-Class Innovator

Hi @amar7295,

Thanks for accepting the solution - helpful to other users & nice for the person that helped you to know it worked.

Thanks, 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!