using Microsoft.SharePoint;
SPSecurity.RunWithElevatedPrivileges(delegate()
{
// Code to Run with admin privileges
});
This will take care of running the code with Administrative privileges. (Administrative account) even the user does not have access to the site.
No comments:
Post a Comment