Overview
This is a complement of story #24980
The implementation is done at "docman" level and applies to everything that depend on docman: SOAP & REST APIs, WebDav as well as Document plugin.
Docman administration
As for previous story #24980. The behaviour is configured in "Manage permissions" page of docman administration.
In Restricted permission section, there is a switch "Forbid deletion of document & versions by Writers" (default is disabled)
Help: "When turned on, Writers will not be able to delete a document or a version of Documents".
Note: the Manager permission is not affected (neither are Docman Administrators)
Enforcement of the restriction
The restriction applies:
- in SOAP API
- in REST API
- in WebDav
- in docman "legacy" interface
- in Document app