public void DeleteDocumentCreatePermission( OrganizationItem orgItem, Type type )
Delete the organization item permissions to create documents of a certain type
Syntax
public void DeleteDocumentCreatePermission( OrganizationItem orgItem, Type type )
Parameters
- orgItem
- Type: OrganizationItem
Organization item, whose permissions need to be deleted. Object. Access path: PublicAPI.Portal.Security.OrganizationItem
- type
- Type: System Type
Document Type
Remarks
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(); //delete the permissions PublicAPI.Docflow.Document.DeleteDocumentCreatePermission(orgItem, type);
See Also