mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
add config paramter enableAdminReceipt
allows admins in list of possible recipients of documents
This commit is contained in:
parent
e10b6974ae
commit
9ac66febee
|
@ -139,6 +139,8 @@ class Settings { /* {{{ */
|
|||
var $_enableOwnerRevApp = false;
|
||||
// enable/disable listing logged in user as reviewer/approver
|
||||
var $_enableSelfRevApp = false;
|
||||
// enable/disable listing administrator as recipient
|
||||
var $_enableAdminReceipt = false;
|
||||
// enable/disable listing owner as recipient
|
||||
var $_enableOwnerReceipt = false;
|
||||
// enable/disable default notification for owner
|
||||
|
@ -579,6 +581,7 @@ class Settings { /* {{{ */
|
|||
$this->_enableAdminRevApp = Settings::boolval($tab["enableAdminRevApp"]);
|
||||
$this->_enableOwnerRevApp = Settings::boolval($tab["enableOwnerRevApp"]);
|
||||
$this->_enableSelfRevApp = Settings::boolval($tab["enableSelfRevApp"]);
|
||||
$this->_enableAdminReceipt = Settings::boolval($tab["enableAdminReceipt"]);
|
||||
$this->_enableOwnerReceipt = Settings::boolval($tab["enableOwnerReceipt"]);
|
||||
$this->_presetExpirationDate = strval($tab["presetExpirationDate"]);
|
||||
$this->_initialDocumentStatus = intval($tab["initialDocumentStatus"]);
|
||||
|
@ -888,6 +891,7 @@ class Settings { /* {{{ */
|
|||
$this->setXMLAttributValue($node, "enableAdminRevApp", $this->_enableAdminRevApp);
|
||||
$this->setXMLAttributValue($node, "enableOwnerRevApp", $this->_enableOwnerRevApp);
|
||||
$this->setXMLAttributValue($node, "enableSelfRevApp", $this->_enableSelfRevApp);
|
||||
$this->setXMLAttributValue($node, "enableAdminReceipt", $this->_enableAdminReceipt);
|
||||
$this->setXMLAttributValue($node, "enableOwnerReceipt", $this->_enableOwnerReceipt);
|
||||
$this->setXMLAttributValue($node, "presetExpirationDate", $this->_presetExpirationDate);
|
||||
$this->setXMLAttributValue($node, "initialDocumentStatus", $this->_initialDocumentStatus);
|
||||
|
|
|
@ -167,6 +167,7 @@ if ($action == "saveSettings")
|
|||
$settings->_enableAdminRevApp = getBoolValue("enableAdminRevApp");
|
||||
$settings->_enableOwnerRevApp = getBoolValue("enableOwnerRevApp");
|
||||
$settings->_enableSelfRevApp = getBoolValue("enableSelfRevApp");
|
||||
$settings->_enableAdminReceipt = getBoolValue("enableAdminReceipt");
|
||||
$settings->_enableOwnerReceipt = getBoolValue("enableOwnerReceipt");
|
||||
$settings->_enableVersionDeletion = getBoolValue("enableVersionDeletion");
|
||||
$settings->_enableVersionModification = getBoolValue("enableVersionModification");
|
||||
|
|
|
@ -67,6 +67,7 @@ if($view) {
|
|||
$view->setParam('document', $document);
|
||||
$view->setParam('version', $content);
|
||||
$view->setParam('enableownerreceipt', $settings->_enableOwnerReceipt);
|
||||
$view->setParam('enableadminreceipt', $settings->_enableAdminReceipt);
|
||||
$view->setParam('accessobject', $accessop);
|
||||
$view($_GET);
|
||||
exit;
|
||||
|
|
|
@ -38,6 +38,7 @@ class SeedDMS_View_SetRecipients extends SeedDMS_Bootstrap_Style {
|
|||
$document = $this->params['document'];
|
||||
$content = $this->params['version'];
|
||||
$enableownerreceipt = $this->params['enableownerreceipt'];
|
||||
$enableadminreceipt = $this->params['enableadminreceipt'];
|
||||
|
||||
$overallStatus = $content->getStatus();
|
||||
|
||||
|
@ -48,7 +49,7 @@ class SeedDMS_View_SetRecipients extends SeedDMS_Bootstrap_Style {
|
|||
$this->contentHeading(getMLText("change_recipients"));
|
||||
|
||||
// Retrieve a list of all users and groups that have receipt privileges.
|
||||
$docAccess = $document->getReadAccessList(true, $enableownerreceipt);
|
||||
$docAccess = $document->getReadAccessList($enableadminreceipt, $enableownerreceipt);
|
||||
|
||||
// Retrieve list of currently assigned recipients, along with
|
||||
// their latest status.
|
||||
|
|
|
@ -629,6 +629,10 @@ if(!is_writeable($settings->_configFilePath)) {
|
|||
<td><?php printMLText("settings_enableSelfRevApp");?>:</td>
|
||||
<td><input name="enableSelfRevApp" type="checkbox" <?php if ($settings->_enableSelfRevApp) echo "checked" ?> /></td>
|
||||
</tr>
|
||||
<tr title="<?php printMLText("settings_enableAdminReceipt_desc");?>">
|
||||
<td><?php printMLText("settings_enableAdminReceipt");?>:</td>
|
||||
<td><input name="enableAdminReceipt" type="checkbox" <?php if ($settings->_enableAdminReceipt) echo "checked" ?> /></td>
|
||||
</tr>
|
||||
<tr title="<?php printMLText("settings_enableOwnerReceipt_desc");?>">
|
||||
<td><?php printMLText("settings_enableOwnerReceipt");?>:</td>
|
||||
<td><input name="enableOwnerReceipt" type="checkbox" <?php if ($settings->_enableOwnerReceipt) echo "checked" ?> /></td>
|
||||
|
|
Loading…
Reference in New Issue
Block a user