take enableXxxxRevApp into account

This commit is contained in:
Uwe Steinmann 2016-10-27 14:22:49 +02:00
parent ef4b6578cc
commit 2bc839918a

View File

@ -37,6 +37,9 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Bootstrap_Style {
$folder = $this->params['folder'];
$document = $this->params['document'];
$content = $this->params['version'];
$enableadminrevapp = $this->params['enableadminrevapp'];
$enableownerrevapp = $this->params['enableownerrevapp'];
$enableselfrevapp = $this->params['enableselfrevapp'];
$overallStatus = $content->getStatus();
@ -46,8 +49,8 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Bootstrap_Style {
$this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document);
$this->contentHeading(getMLText("change_assignments"));
// Retrieve a list of all users and groups that have revision privileges.
$docAccess = $document->getReadAccessList(true, true);
// Retrieve a list of all users and groups that have review / approve privileges.
$docAccess = $document->getReadAccessList($enableadminrevapp, $enableownerrevapp);
// Retrieve list of currently assigned revisors, along with
// their latest status.
@ -99,6 +102,7 @@ class SeedDMS_View_SetRevisors extends SeedDMS_Bootstrap_Style {
break;
}
} else {
if (!$enableselfrevapp && $usr->getID()==$user->getID()) continue;
print "<option value='". $usr->getID() ."'>". htmlspecialchars($usr->getLogin() . " - ". $usr->getFullName())."</option>";
}
}