PublicAPI.Services.SecurityServices.RunWithElevatedPrivilegies ELMA API Documentation
Run a code with elevated permissions. Should be used for loading data from Database without filtering by permissions (методы IEntityManager.Load и IEntityManager.Find).
 
 
Syntax

public void RunWithElevatedPrivilegies(
	Action action
)
Examples

private ISecurityService securityService; // document manager private IEntityManager[IDocument] manager; ... // the next code will generate the SecurityException, if the current user does not have a permission to view the document var doc = manager.Load(id); // the next code will load the document from Database, if the document with a respective ID already exists securityService.RunWithElevatedPrivilegies(delegate() {doc = manager.Load(id);});
See Also