cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide 'Shared files' for consumer

satinderp
Champ in-the-making
Champ in-the-making
Hi

I want to hide "Shared Files" link from the top (alfresco) menu for the consumer.

Please help
12 REPLIES 12

eswbitto
Confirmed Champ
Confirmed Champ

hardik1512
Star Contributor
Star Contributor
Hello,

Follow the steps mentioned in this blog post.
http://hardikkacholia.blogspot.in/2015/09/customizing-alfresco-50-share-header.html

This will help you to hide Shared Files menu from non-admin users.

The issue with this customization is that if the war files are exploded again, then the user will lose these settings. Please keep that in mind.

satinderp
Champ in-the-making
Champ in-the-making
Hi Hardik

This is hide Shared files for everyone i.e. even for users and Managers.

How can we hide only for consumer? And if that's not possible then How can i disable Create menu and upload link for only Consumer under Shared files?

I don't want that consumer should upload anything, so i want to disable these links.

hardik1512
Star Contributor
Star Contributor
Thanks for your info,

But when are war files exploded again in Alfresco tomcat server?

The guru's at Alfresco have always had the position that nothing should be modified past WEB-INF and that modifications should be done the designated way.

Example: jars, amps, web extensions.

I personally have modified files in this scenario and have never had the war files explode again (knocking on wood), but from what the alfresco guys say its possible and it does happen. The case in point that this happens is when you deploy an amp.

mrogers
Star Contributor
Star Contributor
Yes when you redeploy or want to upgrade or apply an amp then if you have hacked the web-app, you have a problem.  When you update the exploded war file what you are effectively doing is updating a temporary cache!   It's the equivalent on Windows of storing all your vital tax records in the Temp folder.

Yes I may do it occasionally during development, however from time to time it causes me problems.   And then the fix is to delete the cache and start again.   

hardik1512
Star Contributor
Star Contributor
Ok, so in this case where some users may not know how to create/install AMP,  they can put these customization files in tomcat\shared\classes\alfresco\web-extension folder , correct?