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

public void AddDocumentCreatePermission(
	UserGroup userGroup,
	Type type
)

Parameters

userGroup
Type: UserGroup
User group to grant permissions to. 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();

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