mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
do not list hidden users as recipient or revisor
This commit is contained in:
parent
568718f023
commit
e06aa0a286
|
@ -192,6 +192,8 @@ class Settings { /* {{{ */
|
|||
var $_enableRemoveRevApp = false;
|
||||
// enable/disable listing logged in user as recipient
|
||||
var $_enableSelfReceipt = false;
|
||||
// enable/disable hidden user as recipient
|
||||
var $_enableHiddenReceipt = false;
|
||||
// enable/disable update of a receipt by the recipient
|
||||
var $_enableUpdateReceipt = false;
|
||||
// enable/disable listing administrator as recipient
|
||||
|
|
|
@ -71,6 +71,7 @@ if($view) {
|
|||
$view->setParam('version', $content);
|
||||
$view->setParam('enableownerreceipt', $settings->_enableOwnerReceipt);
|
||||
$view->setParam('enableadminreceipt', $settings->_enableAdminReceipt);
|
||||
$view->setParam('enablehiddenreceipt', $settings->_enableHiddenReceipt);
|
||||
$view->setParam('accessobject', $accessop);
|
||||
$view($_GET);
|
||||
exit;
|
||||
|
|
|
@ -72,6 +72,7 @@ if($view) {
|
|||
$view->setParam('enableadminrevapp', $settings->_enableAdminRevApp);
|
||||
$view->setParam('enableownerrevapp', $settings->_enableOwnerRevApp);
|
||||
$view->setParam('enableselfrevapp', $settings->_enableSelfRevApp);
|
||||
$view->setParam('enablehiddenrevapp', $settings->_enableHiddenRevApp);
|
||||
$view->setParam('accessobject', $accessop);
|
||||
$view($_GET);
|
||||
exit;
|
||||
|
|
|
@ -39,6 +39,7 @@ class SeedDMS_View_SetRecipients extends SeedDMS_Theme_Style {
|
|||
$content = $this->params['version'];
|
||||
$enableownerreceipt = $this->params['enableownerreceipt'];
|
||||
$enableadminreceipt = $this->params['enableadminreceipt'];
|
||||
$enablehiddenreceipt = $this->params['enablehiddenreceipt'];
|
||||
|
||||
$overallStatus = $content->getStatus();
|
||||
|
||||
|
@ -89,6 +90,7 @@ class SeedDMS_View_SetRecipients extends SeedDMS_Theme_Style {
|
|||
break;
|
||||
}
|
||||
} else {
|
||||
if(!$enablehiddenreceipt && $usr->isHidden()) continue;
|
||||
$options[] = array($usr->getID(), htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Theme_Style {
|
|||
$enableadminrevapp = $this->params['enableadminrevapp'];
|
||||
$enableownerrevapp = $this->params['enableownerrevapp'];
|
||||
$enableselfrevapp = $this->params['enableselfrevapp'];
|
||||
$enablehiddenrevapp = $this->params['enablehiddenrevapp'];
|
||||
|
||||
$overallStatus = $content->getStatus();
|
||||
|
||||
|
@ -103,6 +104,7 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Theme_Style {
|
|||
}
|
||||
} else {
|
||||
if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue;
|
||||
if(!$enablehiddenrevapp && $usr->isHidden()) continue;
|
||||
$options[] = array($usr->getID(), htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user