mirror of
https://codeberg.org/SeedDMS/paperless
synced 2024-11-26 07:22:08 +00:00
log folder name and id when uploading a document
This commit is contained in:
parent
8fa420114b
commit
afecdf2205
|
@ -1286,6 +1286,7 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
|||
}
|
||||
|
||||
if($mfolder) {
|
||||
$logger->log("Uploading into folder '".$mfolder->getName()."' (".$mfolder->getId().")", PEAR_LOG_DEBUG);
|
||||
if($mfolder->getAccessMode($userobj) < M_READWRITE) {
|
||||
$logger->log('No write access on folder '.$mfolder->getId(), PEAR_LOG_ERR);
|
||||
return $response->withStatus(403);
|
||||
|
|
Loading…
Reference in New Issue
Block a user