Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a document library containing a lot of personal information. Originally only admins could see the library but now it has been decided that users need to see their own information. Admins have Full Control and users have Read. The default view shows only documents where the user's name appears in a certain field. So Default View, Name="[Me]" so they can only see their own files. This works fine but it doesn't stop users from opening the library in Explorer view. How can I stop them doing this?

Any suggestions?

Note: I do not have access to Central Administration

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

I used the code from the following blog post and some hints from this one.

Below is the code I finally used, it will disable Explorer View for everyone but admins can then create their own Explorer view if required.

<script type="text/javascript"> 
    _spBodyOnLoadFunctionNames.push("hideToolbarItem()");
    function hideToolbarItem() 
    {   
        var doc = document.getElementsByTagName('ie:menuitem');      
        for (var i = 0; i < doc.length; i++)   
        {
            itm = doc[i];
            if (itm.id.match('OpenInExplorer')!=null) 
            {
                itm.hidden=true;          
            }   
        }  
    } 
</script> 
share|improve this answer
add comment

Here is a few views on how to achieve this:

share|improve this answer
    
For the first link you've sent me I can't find the file they are referring to I get to Program Files\Common Files\microsoft shared\Web Server Extensions\12 and the only folder I have is BIN. –  Enilorac Nov 13 '12 at 10:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.