Microsoft Developer Network > 포럼 홈 > SharePoint - Design and Customization > WSS3 hide web part if permissions don't exist
질문하기질문하기
 

질문WSS3 hide web part if permissions don't exist

  • 2007년 7월 31일 화요일 오후 8:15JasonD240 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    I have several web part pages that managers will be using as a company dashboard. The problem that I have is that instead of just not showing up to read only users, the web parts show an access denied error. Is there a way to simply hide the web part if the user does not have the appropriate user permissions?

     

    I am using Sharepoint Services 3.

     

    Any suggestions are appreciated, thanks,

     

    Jason

모든 응답

  • 2007년 8월 1일 수요일 오후 8:47Rich McGuire 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    I know Audiences themselves don't exist in WSS 3, but you might still be able to apply audience filtering on Web Parts w/ SharePoint groups (done by modifying the properties of the web part)

  • 2007년 8월 3일 금요일 오전 7:19Suchii _www.bewise.fr_MVP사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Hi,

     

    I've developped a WebControl able to hide unauthorized WebPart. You can download it from http://www.bewise.fr/download/toolbox/Bewise.SharePoint.RoleViewerManager.zip

     

    The .zip file contains a "Read Me.txt" explaining how to install it.

     

     

    Laurent Cotton (Aka Suchii)

    MCTS / MCSD.NET / MCT

    www.bewise.fr

    blog : http://sharepoint.over-blog.fr/

     

  • 2007년 8월 3일 금요일 오후 3:10JasonD240 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Hi Suchii,

     

    Thank you for the file. I attempted to use GACUtil to import the dll however it failed citing an unknown error. Any suggestions?

     

    Thanks,


    Jason

  • 2009년 7월 3일 금요일 오후 8:39grigb 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hello Suchii,

    I’ve tried to download your WebPart and I can not succeed.

    The link is not more available.

    Can you tell me where has been moved?

    Thank you,

    Gregoire

  • 2009년 7월 6일 월요일 오후 2:50Kyle Schaeffer 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     코드 있음
    Jason, as an alternative, you could also add a "SPSecurityTrimmedControl" around  a special web part zone on your page layout(s).  You'll want to create a web part zone on your page layouts that looks something like this:

    <SharePoint:SPSecurityTrimmedControl PermissionsString="ManagePermissions" runat="server">
         <WebPartPages:WebPartZone id="zone1" runat="server" title="Top Zone" />
    </SharePoint:SPSecurityTrimmedControl>
    
    In this example, I have a web part zone inside the security-trimming control that only allows users with the "ManagePermissions" permission-level to see any web parts within that web part zone.  This is an OOTB fix that should be relatively easy to implement.

    You can read more about the different permission levels you can use here:  http://codename-srini.blogspot.com/2009/04/spsecuritytrimmedcontrol-and.html


    Kyle