mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
a78800e036
11
CHANGELOG
11
CHANGELOG
|
@ -1,3 +1,8 @@
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
Changes in version 6.0.13
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
- merge changes up to 5.1.20
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 6.0.12
|
Changes in version 6.0.12
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
@ -164,6 +169,11 @@
|
||||||
- add document list which can be exported as an archive
|
- add document list which can be exported as an archive
|
||||||
- search results can be exported
|
- search results can be exported
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
Changes in version 5.1.20
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
- fix import of users
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 5.1.19
|
Changes in version 5.1.19
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
@ -191,6 +201,7 @@
|
||||||
- add new attribute types 'document', 'folder', 'user', 'group'
|
- add new attribute types 'document', 'folder', 'user', 'group'
|
||||||
- overhaul of folder tree which can now be used more than once on a page
|
- overhaul of folder tree which can now be used more than once on a page
|
||||||
- fix search of values in attributes of document content
|
- fix search of values in attributes of document content
|
||||||
|
- fulltext search finds only documents for which the logged in user has read access
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 5.1.18
|
Changes in version 5.1.18
|
||||||
|
|
|
@ -472,7 +472,7 @@ class SeedDMS_Core_DMS {
|
||||||
$this->lasterror = '';
|
$this->lasterror = '';
|
||||||
$this->version = '@package_version@';
|
$this->version = '@package_version@';
|
||||||
if($this->version[0] == '@')
|
if($this->version[0] == '@')
|
||||||
$this->version = '6.0.12';
|
$this->version = '6.0.13';
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
<email>uwe@steinmann.cx</email>
|
<email>uwe@steinmann.cx</email>
|
||||||
<active>yes</active>
|
<active>yes</active>
|
||||||
</lead>
|
</lead>
|
||||||
<date>2020-06-05</date>
|
<date>2020-09-03</date>
|
||||||
<time>09:43:12</time>
|
<time>09:43:12</time>
|
||||||
<version>
|
<version>
|
||||||
<release>6.0.12</release>
|
<release>6.0.13</release>
|
||||||
<api>6.0.12</api>
|
<api>6.0.13</api>
|
||||||
</version>
|
</version>
|
||||||
<stability>
|
<stability>
|
||||||
<release>stable</release>
|
<release>stable</release>
|
||||||
|
@ -24,10 +24,6 @@
|
||||||
</stability>
|
</stability>
|
||||||
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
<notes>
|
<notes>
|
||||||
- add method SeedDMS_Core_Document::setParent() as an alias for setFolder()
|
|
||||||
- clear the save content list and latest content in SeedDMS_Core_Document after
|
|
||||||
a version has been deleted.
|
|
||||||
- new method SeedDMS_Core_Document::isLatestVersion()
|
|
||||||
</notes>
|
</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir baseinstalldir="SeedDMS" name="/">
|
<dir baseinstalldir="SeedDMS" name="/">
|
||||||
|
@ -2059,5 +2055,20 @@ SeedDMS_Core_DocumentContent::delRevisor() returns -4 if user has already made a
|
||||||
SeedDMS_Core_DMS::filterAccess() properly checks for documents
|
SeedDMS_Core_DMS::filterAccess() properly checks for documents
|
||||||
</notes>
|
</notes>
|
||||||
</release>
|
</release>
|
||||||
|
<release>
|
||||||
|
<date>2020-06-05</date>
|
||||||
|
<time>09:43:12</time>
|
||||||
|
<version>
|
||||||
|
<release>6.0.12</release>
|
||||||
|
<api>6.0.12</api>
|
||||||
|
</version>
|
||||||
|
<stability>
|
||||||
|
<release>stable</release>
|
||||||
|
<api>stable</api>
|
||||||
|
</stability>
|
||||||
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
|
<notes>
|
||||||
|
</notes>
|
||||||
|
</release>
|
||||||
</changelog>
|
</changelog>
|
||||||
</package>
|
</package>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
class SeedDMS_Version { /* {{{ */
|
class SeedDMS_Version { /* {{{ */
|
||||||
|
|
||||||
const _number = "6.0.12";
|
const _number = "6.0.13";
|
||||||
const _string = "SeedDMS";
|
const _string = "SeedDMS";
|
||||||
|
|
||||||
function __construct() {
|
function __construct() {
|
||||||
|
|
|
@ -70,12 +70,17 @@ function renderFolderData($colname, $objdata) { /* {{{ */
|
||||||
|
|
||||||
function getGroupData($colname, $coldata, $objdata) { /* {{{ */
|
function getGroupData($colname, $coldata, $objdata) { /* {{{ */
|
||||||
global $dms;
|
global $dms;
|
||||||
|
$kk = explode('_', $colname);
|
||||||
|
if(count($kk) == 2)
|
||||||
|
$gn = $kk[1];
|
||||||
|
else
|
||||||
|
$gn = '1';
|
||||||
if(!isset($objdata['groups']))
|
if(!isset($objdata['groups']))
|
||||||
$objdata['groups'] = [];
|
$objdata['groups'] = [];
|
||||||
if($group = $dms->getGroupByName($coldata)) {
|
if($group = $dms->getGroupByName($coldata)) {
|
||||||
$objdata['groups'][] = $group;
|
$objdata['groups'][$gn] = $group;
|
||||||
} else {
|
} else {
|
||||||
$objdata['groups'] = [];
|
$objdata['groups'][$gn] = null;
|
||||||
$objdata['__logs__'][] = array('type'=>'error', 'msg'=> "No such group with name '".$coldata."'");
|
$objdata['__logs__'][] = array('type'=>'error', 'msg'=> "No such group with name '".$coldata."'");
|
||||||
}
|
}
|
||||||
return $objdata;
|
return $objdata;
|
||||||
|
@ -83,8 +88,13 @@ function getGroupData($colname, $coldata, $objdata) { /* {{{ */
|
||||||
|
|
||||||
function renderGroupData($colname, $objdata) { /* {{{ */
|
function renderGroupData($colname, $objdata) { /* {{{ */
|
||||||
$html = '';
|
$html = '';
|
||||||
foreach($objdata[$colname] as $g)
|
$kk = explode('_', $colname);
|
||||||
$html .= $g->getName().';';
|
if(count($kk) == 2)
|
||||||
|
$gn = $kk[1];
|
||||||
|
else
|
||||||
|
$gn = '1';
|
||||||
|
if($objdata['groups'][$gn])
|
||||||
|
$html .= $objdata['groups'][$gn]->getName();
|
||||||
return $html;
|
return $html;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
@ -127,6 +137,7 @@ if (isset($_FILES['userdata']) && $_FILES['userdata']['error'] == 0) {
|
||||||
|
|
||||||
$csvdelim = ';';
|
$csvdelim = ';';
|
||||||
$csvencl = '"';
|
$csvencl = '"';
|
||||||
|
$colmap = array();
|
||||||
if($fp = fopen($_FILES['userdata']['tmp_name'], 'r')) {
|
if($fp = fopen($_FILES['userdata']['tmp_name'], 'r')) {
|
||||||
/* First of all build up a column map, which contains for each columen
|
/* First of all build up a column map, which contains for each columen
|
||||||
* the column name
|
* the column name
|
||||||
|
@ -138,7 +149,6 @@ if (isset($_FILES['userdata']) && $_FILES['userdata']['error'] == 0) {
|
||||||
* Unknown columns will be skipped and the index in the column map will
|
* Unknown columns will be skipped and the index in the column map will
|
||||||
* be left out.
|
* be left out.
|
||||||
*/
|
*/
|
||||||
$colmap = array();
|
|
||||||
if($csvheader = fgetcsv($fp, 0, $csvdelim, $csvencl)) {
|
if($csvheader = fgetcsv($fp, 0, $csvdelim, $csvencl)) {
|
||||||
foreach($csvheader as $i=>$colname) {
|
foreach($csvheader as $i=>$colname) {
|
||||||
$colname = trim($colname);
|
$colname = trim($colname);
|
||||||
|
@ -245,10 +255,14 @@ if (isset($_FILES['userdata']) && $_FILES['userdata']['error'] == 0) {
|
||||||
} else {
|
} else {
|
||||||
if(!empty($u['login']) && !empty($u['name']) && !empty($u['email'])) {
|
if(!empty($u['login']) && !empty($u['name']) && !empty($u['email'])) {
|
||||||
if(!empty($_POST['addnew'])) {
|
if(!empty($_POST['addnew'])) {
|
||||||
$ret = $dms->addUser($u['login'], '', $u['name'], $u['email'], !empty($u['language']) ? $u['language'] : 'en_GB', 'bootstrap', !empty($u['comment']) ? $u['comment'] : '', $u['role']);
|
$ret = $dms->addUser($u['login'], !empty($u['passenc']) ? $u['passenc'] : '', $u['name'], $u['email'], !empty($u['language']) ? $u['language'] : 'en_GB', 'bootstrap', !empty($u['comment']) ? $u['comment'] : '', $u['role']);
|
||||||
if($ret)
|
if($ret) {
|
||||||
$log[$uhash][] = array('id'=>$u['login'], 'type'=>'success', 'msg'=> "User '".$u['name']."' added.");
|
$log[$uhash][] = array('id'=>$u['login'], 'type'=>'success', 'msg'=> "User '".$u['name']."' added.");
|
||||||
else
|
foreach($u['groups'] as $g) {
|
||||||
|
if($g)
|
||||||
|
$ret->joinGroup($g);
|
||||||
|
}
|
||||||
|
} else
|
||||||
$log[$uhash][] = array('id'=>$u['login'], 'type'=>'error', 'msg'=> "User '".$u['name']."' could not be added.");
|
$log[$uhash][] = array('id'=>$u['login'], 'type'=>'error', 'msg'=> "User '".$u['name']."' could not be added.");
|
||||||
} else {
|
} else {
|
||||||
// $log[$uhash][] = array('id'=>$u['login'], 'type'=>'success', 'msg'=> "User '".$u['name']."' can be added.");
|
// $log[$uhash][] = array('id'=>$u['login'], 'type'=>'success', 'msg'=> "User '".$u['name']."' can be added.");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user