PublicAPI.Docflow.Document.DeleteDocumentCreatePermission ELMA API Documentation
Delete the user group permissions to create documents of a certain type
 
 
Syntax

public void DeleteDocumentCreatePermission(
	UserGroup userGroup,
	Type type
)

Parameters

userGroup
Type: UserGroup
User group, whose permissions need to be deleted. Object. Access path: PublicAPI.Portal.Security.UserGroup
type
Type: System Type
Document Type
Remarks

The knowledge base article on this subject
Examples

//load the user group by ID 
var userGroup = PublicAPI.Portal.Security.UserGroup.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(userGroup, type);
See Also