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.
Solved! Go 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
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
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
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
Thanks for the solution.
Hi @amar7295,
Thanks for accepting the solution - helpful to other users & nice for the person that helped you to know it worked.
Thanks,
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.