mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-16 06:31:21 +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 {
|
} else {
|
||||||
// check if user is admin
|
// check if user is admin
|
||||||
// only admins may delete documents
|
// only admins may delete documents
|
||||||
|
/* There is not reason to allow only admins to remove a document
|
||||||
if(!$this->user->isAdmin()) {
|
if(!$this->user->isAdmin()) {
|
||||||
return "403 Forbidden";
|
return "403 Forbidden";
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if(!$obj->remove()) {
|
if(!$obj->remove()) {
|
||||||
return "409 Conflict";
|
return "409 Conflict";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user