do not show fast upload area if access on folder is insufficient

This commit is contained in:
Uwe Steinmann 2024-03-13 09:29:39 +01:00
parent 423ee97ef1
commit 81b45ceeff
2 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@
- dragging a folder on a folder list item oder the drag and drop area will - dragging a folder on a folder list item oder the drag and drop area will
recursively upload the folder hierarchy including all files recursively upload the folder hierarchy including all files
- fix checking if user is owner when sending notifications - fix checking if user is owner when sending notifications
- do not show fast upload area if access on folder is insufficient
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 5.1.33 Changes in version 5.1.33

View File

@ -474,13 +474,13 @@ $('body').on('click', '.order-btn', function(ev) {
$folder = $this->params['folder']; $folder = $this->params['folder'];
$maxuploadsize = $this->params['maxuploadsize']; $maxuploadsize = $this->params['maxuploadsize'];
$this->contentHeading(getMLText("dropupload"), true);
if ($folder->getAccessMode($user) >= M_READWRITE) { if ($folder->getAccessMode($user) >= M_READWRITE) {
$this->contentHeading(getMLText("dropupload"), true);
?> ?>
<div id="draganddrophandler" class="well alert alert-warning" data-droptarget="folder_<?php echo $folder->getID(); ?>" data-target="<?php echo $folder->getID(); ?>" data-uploadformtoken="<?php echo createFormKey(''); ?>"><?php printMLText('drop_files_here', ['maxuploadsize'=>SeedDMS_Core_File::format_filesize($maxuploadsize)]); ?></div> <div id="draganddrophandler" class="well alert alert-warning" data-droptarget="folder_<?php echo $folder->getID(); ?>" data-target="<?php echo $folder->getID(); ?>" data-uploadformtoken="<?php echo createFormKey(''); ?>"><?php printMLText('drop_files_here', ['maxuploadsize'=>SeedDMS_Core_File::format_filesize($maxuploadsize)]); ?></div>
<?php <?php
} else { } else {
$this->errorMsg(getMLText('access_denied')); //$this->errorMsg(getMLText('access_denied'));
} }
} /* }}} */ } /* }}} */