PublicAPI.Docflow.Document.AddFullAccessPermission ELMA API Documentation
Method for adding the full access to the document
 
 
Syntax

public void AddFullAccessPermission(
	Document document,
	OrganizationItem orgItem
)

Parameters

document
Type: Document
Document, whose permission needs to be granted. Object. Access path: PublicAPI.Docflow.Document
orgItem
Type: OrganizationItem
Organization item, to grant permissions to. Object. Access path: PublicAPI.Portal.Security.OrganizationItem
Remarks

The knowledge base article on this subject
Examples

//load the document by ID 
var doc = PublicAPI.Docflow.Document.Load(3);
//load an organization item by ID 
var orgItem = PublicAPI.Portal.Security.OrganizationItem.Load(3);

//add the permissions
PublicAPI.Docflow.Document.AddFullAccessPermission(doc, orgItem);

//WARNING!! If the organization item already has these permissions, the function will not add anything
See Also