PublicAPI.Docflow.Document.AddDocumentCreatePermission ELMA API Documentation
Add the organization item permissions to create documents of a certain type
 
 
Syntax

public void AddDocumentCreatePermission(
	OrganizationItem orgItem,
	Type type
)

Parameters

orgItem
Type: OrganizationItem
Organization item, the permissions need to be granted to. Object. Access path: PublicAPI.Portal.Security.OrganizationItem
type
Type: System Type
Document Type
Remarks

The knowledge base article on this subject
Examples

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

//add the permissions
PublicAPI.Docflow.Document.AddDocumentCreatePermission(orgItem, type);
See Also