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

public void DeleteDocumentCreatePermission(
	User user,
	Type type
)

Parameters

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

The knowledge base article on this subject
Examples

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