mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 22:47:19 +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->warningMsg($msg);
|
||||||
$this->contentHeading(getMLText("add_document"));
|
$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');
|
$txt = $this->callHook('addDocumentPreForm');
|
||||||
if(is_string($txt))
|
if(is_string($txt))
|
||||||
echo $txt;
|
echo $txt;
|
||||||
|
@ -450,9 +454,6 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
$this->warningMsg(getMLText("add_doc_workflow_warning"));
|
$this->warningMsg(getMLText("add_doc_workflow_warning"));
|
||||||
} elseif($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
|
} 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') {
|
if($workflowmode == 'traditional') {
|
||||||
$this->contentSubHeading(getMLText("assign_reviewers"));
|
$this->contentSubHeading(getMLText("assign_reviewers"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user