mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
remove restrictions that only admins may delete documents
This commit is contained in:
parent
336b5f79d9
commit
6793dbfb66
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue
Block a user