cancel
Showing results for 
Search instead for 
Did you mean: 

Block users acces of "My Files"

mdubois
Confirmed Champ
Confirmed Champ

Hi,

I want to block user to use My Files section. Actually they can acces to it and I want stop it, delete button or other ways

Thk a lot

10 REPLIES 10

mjaatit
Champ on-the-rise
Champ on-the-rise

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