Disabling some header options for user

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member

Disabling some header options for user

Jump to solution

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 Solution

Accepted Solutions
Highlighted
Moderator
Moderator

Re: Disabling some header options for user

Jump to solution

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-C02, GAIQ)

View solution in original post

3 Replies
Highlighted
Moderator
Moderator

Re: Disabling some header options for user

Jump to solution

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-C02, GAIQ)

View solution in original post

Highlighted
Active Member

Re: Disabling some header options for user

Jump to solution

Thanks for the solution.

 

Highlighted
Community Manager
Community Manager

Re: Disabling some header options for user

Jump to solution

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!