Block users acces of "My Files"

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

Re: Block users acces of "My Files"

Hi,

First of all, you should override the following out-of-the-box package "org.alfresco.share.header" by your custom one.

To achieve that overriding, you should use surf module extension (for more info: https://docs.alfresco.com/5.1/tasks/dev-extensions-share-tutorials-custom-header-admin-menu.html).

And then, all what you have to do is add this line 

widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_MY_FILES");        

in your custom webScript controller "share-header.get.js"

That's all what you need to hide"MY FILES" from header.

Peace up,

mjaatit