mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
take enableXxxxRevApp into account
This commit is contained in:
parent
ef4b6578cc
commit
2bc839918a
|
@ -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>";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user