public void AddEditPermission( DmsObject dmsObject, OrganizationItem orgItem )
Grant the organization item permissions to edit the docflow object
Syntax
public void AddEditPermission( DmsObject dmsObject, OrganizationItem orgItem )
Parameters
- dmsObject
- Type: DmsObject
Docflow object, whose permissions need to be added. Object. Access path: PublicAPI.Docflow.Objects.DmsObject
- orgItem
- Type: OrganizationItem
Organization item, the permissions need to be granted to. Object. Access path: PublicAPI.Portal.Security.OrganizationItem
Examples
//load the folder by ID var myFolder = PublicAPI.Docflow.Folder.Load(3); //load an organization item by ID var orgItem = PublicAPI.Portal.Security.OrganizationItem.Load(3); //add permissions PublicAPI.Docflow.Permissions.AddEditPermission(myFolder, orgItem); //WARNING!! If the organization item already has these permissions, the function will not add anything
See Also