Show web part based on permissions

Posted by pinniger on Stack Overflow See other posts from Stack Overflow or by pinniger
Published on 2010-05-18T16:37:26Z Indexed on 2010/05/18 16:40 UTC
Read the original article Hit count: 224

Filed under:

So, I'm grabbing data from a sharepoint 2007 announcements list, and displaying it on another site. I need to make sure that the web part that I created is not displayed for people who don't have permissions for the site I'm getting the data from. How do I "disable" the web part if a user doesn't have permissions?

I've tried this.enabled = false in the onload() event, didn't work though.

© Stack Overflow or respective owner

Related posts about sharepoint