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.
And to avoid UnauthorizedAccessException(s), be sure to check if user has appropriate permissions in any other place where you access any webs, lists and data.