From 0fac1646d46fd48038c02e8d4858ac7af5fc8c13 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 1 Apr 2020 16:56:20 +0200 Subject: [PATCH] set $docAccess before checking the workflow mode --- views/bootstrap/class.AddDocument.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/views/bootstrap/class.AddDocument.php b/views/bootstrap/class.AddDocument.php index 9308d235e..c0857ba27 100644 --- a/views/bootstrap/class.AddDocument.php +++ b/views/bootstrap/class.AddDocument.php @@ -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"));