From c6121ff201ec546477f3ad84398b61b6c7081abe Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 22 Apr 2016 12:25:26 +0200 Subject: [PATCH] do not issue an error if access on library folder is forbitten just disable the upload from the library folder --- out/out.AddDocument.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/out/out.AddDocument.php b/out/out.AddDocument.php index f47e92968..eb805c5d9 100644 --- a/out/out.AddDocument.php +++ b/out/out.AddDocument.php @@ -58,7 +58,8 @@ if($settings->_libraryFolder) { } if ($libfolder->getAccessMode($user) < M_READ) { - UI::exitError(getMLText("folder_title", array("foldername" => htmlspecialchars($libfolder->getName()))), getMLText("access_denied")); + $libfolder = null; +// UI::exitError(getMLText("folder_title", array("foldername" => htmlspecialchars($libfolder->getName()))), getMLText("access_denied")); } } else { $libfolder = null;