set $docAccess before checking the workflow mode

This commit is contained in:
Uwe Steinmann 2020-04-01 16:56:20 +02:00
parent 9b30289b32
commit 0fac1646d4

View File

@ -192,6 +192,10 @@ $(document).ready(function() {
$this->warningMsg($msg);
$this->contentHeading(getMLText("add_document"));
// Retrieve a list of all users and groups that have review / approve
// privileges.
$docAccess = $folder->getReadAccessList($enableadminrevapp, $enableownerrevapp);
$txt = $this->callHook('addDocumentPreForm');
if(is_string($txt))
echo $txt;
@ -450,9 +454,6 @@ $(document).ready(function() {
}
$this->warningMsg(getMLText("add_doc_workflow_warning"));
} elseif($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
// Retrieve a list of all users and groups that have review / approve
// privileges.
$docAccess = $folder->getReadAccessList($enableadminrevapp, $enableownerrevapp);
if($workflowmode == 'traditional') {
$this->contentSubHeading(getMLText("assign_reviewers"));