Hello Everyone,I have been tasked with coming up with a solution to be able to allow a non-domain/society user be able to access files within alfresco. Essentially, I need to completely separate my regular user from this one specific user and its ability to navigate anywhere or find any information out about the rest of my sites and people. So I thought the best way to do that is to create a site and assign appropriate permissions to the document library and also remove the menu bar from the top.I followed this link instructions…http://blogs.alfresco.com/wp/developer/2013/09/16/customizing-the-share-header-part-3/I haven't ever written javascript and I think I'm writing it wrong. I've modified this file on a test servertomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/header/share-header.get.js
<import resource="classpath:/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.js">
model.jsonModel = {
rootNodeId: "share-header",
services: getHeaderServices(),
widgets: [
{
id: "SHARE_VERTICAL_LAYOUT",
name: "alfresco/layout/VerticalWidgets",
config:
{
widgets: getHeaderModel()
}
}
]
if (user.istest1)
{
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_MY_FILES");
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER ADMIN CONSOLE");
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_REPOSITORY");
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_PEOPLE");
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_TASKS");
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_SITES_MENU");
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER SHARE FILES");
widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_HOME");
}
};
I think I'm not doing it right. Can someone point me in the right direction?