Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Disable Delete Item option from Ribbon and ECB menu, even for Contributors

$
0
0

Hi,
Can we remove the specific ribbon items based on some user role conditions? Say, for example, I have a scenario, wherein, I need to disable / remove Delete Item ribbon action (from ECB, View and Edit Form and other views also), even for a user with Contributor permission, but not disable / remove Delete Item permission for a user with Full Control permission. I would like to achieve this with a feature (and not through JS), since I want to have the flexibility to turn it on/off, as required. Also, I would like to know, how can we do it for all lists / libraries and specific lists / libraries.

I did find a link (below), which talks about how to achieve the above requirement partially, using a Feature, but not based on roles and also, it doesn't cover hiding ECB Delete Item option through code.

http://www.3guysonsharepoint.com/?p=778


Ven



Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>