Click here to Skip to main content
15,920,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to Hide "Manage Permisisons" for a list item edit dropdown?
There are ways to do this from the core.js file but it applies to all site collection.
I need to hide it only for a specific library.
Please help.

Regards,
Nisha
Posted

You only see these items if you have relevant permissions for the said list. Why don't you just turn down the permissions for the users that you don't want to have this functionality?
 
Share this answer
 
Comments
NishaTM 12-Jun-12 0:52am    
Hi Manas,

Let me expalin the situation : The user has full control and all permissions are handled through event handler code. Permissions change according to certain column values for the document in the library. User has to be given full control only due to certain requirements. Need a javascript code to hide the "Manage Permissions" option in the context menu. I googled and found ways to implement this for the option in New, Actions, Settings dropdowns and they work. But the edit menu dropdown for an item is generated on the fly when we click the dropdown. There are ways to do it in the core.js file. But it applies for all sites. I want this only for a certain library. Kindly help.
Hi,

After lot of "googling" I found a simple solution. It works!!

I simply tried to override the function which navigates to the Manage Permissions page and display an alert :
XML
<script type="text/javascript">

var intervalId2 = setInterval("OverrideOpenFuncs2()", 1000);

function OverrideOpenFuncs2()
 {
   NavigateToManagePermsPage = function (strHttpRoot, strListId,

strFileRef)
{
alert('This Library does not support managing permissions.');
}
}

setTimeout("window.clearInterval(intervalId2);", 10000);

</script>


I would like to thank JayInCa for posting this simple solution. http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/26c120d7-fbd0-41ff-b46f-f7dd0bb2a396[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900