log folder name and id when uploading a document

This commit is contained in:
Uwe Steinmann 2024-03-20 20:30:43 +01:00
parent 8fa420114b
commit afecdf2205

View File

@ -1286,6 +1286,7 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
} }
if($mfolder) { if($mfolder) {
$logger->log("Uploading into folder '".$mfolder->getName()."' (".$mfolder->getId().")", PEAR_LOG_DEBUG);
if($mfolder->getAccessMode($userobj) < M_READWRITE) { if($mfolder->getAccessMode($userobj) < M_READWRITE) {
$logger->log('No write access on folder '.$mfolder->getId(), PEAR_LOG_ERR); $logger->log('No write access on folder '.$mfolder->getId(), PEAR_LOG_ERR);
return $response->withStatus(403); return $response->withStatus(403);