mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
d4ca66706d
|
@ -57,6 +57,10 @@ class SeedDMS_Controller_Login extends SeedDMS_Controller_Common {
|
|||
*/
|
||||
if(!$user && $settings->_enableGuestLogin && (int) $settings->_guestID) {
|
||||
$guestUser = $dms->getUser((int) $settings->_guestID);
|
||||
if(!$guestUser) {
|
||||
$this->setErrorMsg("login_error_text");
|
||||
return false;
|
||||
}
|
||||
if(($login != $guestUser->getLogin())) {
|
||||
if ((!isset($pwd) || strlen($pwd)==0)) {
|
||||
$this->setErrorMsg("login_error_text");
|
||||
|
|
|
@ -90,6 +90,7 @@ class SeedDMS_View_ViewFolder extends SeedDMS_Bootstrap_Style {
|
|||
$expandFolderTree = $this->params['expandFolderTree'];
|
||||
$enableDropUpload = $this->params['enableDropUpload'];
|
||||
$maxItemsPerPage = $this->params['maxItemsPerPage'];
|
||||
$showtree = $this->params['showtree'];
|
||||
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
parent::jsTranslations(array('cancel', 'splash_move_document', 'confirm_move_document', 'move_document', 'splash_move_folder', 'confirm_move_folder', 'move_folder'));
|
||||
|
@ -134,7 +135,8 @@ $('#loadmore').click(function(e) {
|
|||
});
|
||||
<?php } ?>
|
||||
<?php
|
||||
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 0, '', $expandFolderTree == 2, $orderby);
|
||||
if($showtree == 1)
|
||||
$this->printNewTreeNavigationJs($folder->getID(), M_READ, 0, '', $expandFolderTree == 2, $orderby);
|
||||
|
||||
if ($enableDropUpload && $folder->getAccessMode($user) >= M_READWRITE) {
|
||||
echo "SeedDMSUpload.setUrl('../op/op.Ajax.php');";
|
||||
|
|
Loading…
Reference in New Issue
Block a user