new version 1.2.2, change in api

This commit is contained in:
Uwe Steinmann 2024-03-15 10:45:19 +01:00
parent 5df36d9487
commit 8fa420114b
3 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
Changes in version 1.2.2
==========================
- requires SeedDMS 5.1.34 or 6.0.27
Changes in version 1.2.1
==========================

View File

@ -1350,13 +1350,13 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
if($settings->_workflowMode == 'traditional' || $settings->_workflowMode == 'traditional_only_approval') {
// add mandatory reviewers/approvers
if($settings->_workflowMode == 'traditional') {
$mreviewers = getMandatoryReviewers($mfolder, $userobj);
$mreviewers = getMandatoryReviewers($mfolder, null, $userobj);
if($mreviewers['i'])
$reviewers['i'] = array_merge($reviewers['i'], $mreviewers['i']);
if($mreviewers['g'])
$reviewers['g'] = array_merge($reviewers['g'], $mreviewers['g']);
}
$mapprovers = getMandatoryApprovers($mfolder, $userobj);
$mapprovers = getMandatoryApprovers($mfolder, null, $userobj);
if($mapprovers['i'])
$approvers['i'] = array_merge($approvers['i'], $mapprovers['i']);
if($mapprovers['g'])

View File

@ -3,8 +3,8 @@ $EXT_CONF['paperless'] = array(
'title' => 'Paperless RestAPI',
'description' => 'This extension adds additional rest api routes to make it behave like a paperless server. Just use the regular paperless apps, .e.g paperless mobile to access SeedDMS.',
'disable' => false,
'version' => '1.2.1',
'releasedate' => '2023-11-03',
'version' => '1.2.2',
'releasedate' => '2024-03-15',
'author' => array('name'=>'Uwe Steinmann', 'email'=>'uwe@steinmann.cx', 'company'=>'MMK GmbH'),
'config' => array(
'rootfolder' => array(
@ -73,7 +73,7 @@ $EXT_CONF['paperless'] = array(
),
),
'constraints' => array(
'depends' => array('php' => '7.4.0-', 'seeddms' => array('5.1.33-5.1.99', '6.0.26-6.0.99', '6.1.0-6.1.99')),
'depends' => array('php' => '7.4.0-', 'seeddms' => array('5.1.34-5.1.99', '6.0.27-6.0.99', '6.1.0-6.1.99')),
),
'icon' => 'icon.svg',
'changelog' => 'changelog.md',