cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Shared Files menu option Enterprise 4.2

ayubalfresco
Champ in-the-making
Champ in-the-making
As described in https://issues.alfresco.com/jira/browse/ALF-19930 I tried option 3 of using the javascript function in share-header.get.js file however I am seeing error that Object.prototype.toString().apply is not a function.

Could some one please let me know how to hide Shared Files option from Alfresco share. I am using Alfresco Enterprise 4.2

Thank you.
1 REPLY 1

julioc
Champ in-the-making
Champ in-the-making
Hi,

In the issue there is a comment which indicate the following:
<cite>
Axel Faust added a comment - 29-Jan-14 12:48 PM
Note to anyone trying out the code snippet in the description: There is an error that I cannot edit / correct. The parts that read "Object.prototype.toString().apply(obj)" should actually read "Object.prototype.toString.apply(obj)"
</cite>


Based on the above mentioned, the error is not displayed and you can access to the application, the menu items will be not displayed.
In case if you need only to hide the "Shared Files" item, so, you only leave this value ("HEADER_SHARED_FILES") in the array.