05-14-2020 05:06 AM
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.
05-14-2020 08:02 AM
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
05-14-2020 08:02 AM
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
05-19-2020 07:50 AM
Thanks for the solution.
05-19-2020 10:25 AM
Hi @amar7295,
Thanks for accepting the solution - helpful to other users & nice for the person that helped you to know it worked.
Thanks,
Explore our Alfresco products with the links below. Use labels to filter content by product module.