mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-31 14:07:16 +00:00
set $docAccess before checking the workflow mode
This commit is contained in:
parent
9b30289b32
commit
0fac1646d4
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user