Permission by obfuscation
… or how to hide certain actions in SharePoint?
There are a couple of things, which can not be configured in SharePoint. For example you cannot configure, that users are not able to edit a list in datasheet view or in Excel or Access. Bummer!
But with a couple of lines of JavaScript this isn’t really a challenge.
<script language="javascript" type="text/javascript" src="/Scripts/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$("[id$='_EditInGridButton']").remove();
$("[id$='_ExportToSpreadsheet']").remove();
$("[id$='_ExportToDatabase']").remove();
});
</script>
Just place this code in a Content-Editor-WebPart on the page and off you go!