remove restrictions that only admins may delete documents

This commit is contained in:
Uwe Steinmann 2016-04-04 07:40:25 +02:00
parent 336b5f79d9
commit 6793dbfb66

View File

@ -668,9 +668,11 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
} else {
// check if user is admin
// only admins may delete documents
/* There is not reason to allow only admins to remove a document
if(!$this->user->isAdmin()) {
return "403 Forbidden";
}
*/
if(!$obj->remove()) {
return "409 Conflict";