SharePoint, ? SPSecurity.RunWithElevatedPrivledges.
RWEP . SPSite SPWeb, SPContext ( SPContext.Current.Site), - . RWEP.
SPSecurity.RunWithElevatedPrivileges(()
{
(SPSite site = SPSite (SPContext.Current.Site.Url))
{
(SPWeb web = site.OpenWeb())
{
//... - SPWeb
}
}
});
If you need to access a file from an external access point in order to update it using existing processes, you can use the file sharing path that is accessible to all SPDocumentLibrary, but choose "Actions" → "Open with Windows Explorer" to get network path.
source
share