allow add to transmittals with only read access on document

This commit is contained in:
Uwe Steinmann 2019-11-20 18:14:43 +01:00
parent 85157a8bfe
commit 4b55bc4fd8

View File

@ -45,7 +45,7 @@ if (!is_object($document)) {
UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
if ($document->getAccessMode($user) < M_ALL) {
if ($document->getAccessMode($user) < M_READ) {
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
}