diff --git a/op/op.AddDocument.php b/op/op.AddDocument.php index a9ed40be1..15db7792d 100644 --- a/op/op.AddDocument.php +++ b/op/op.AddDocument.php @@ -141,7 +141,7 @@ if (isset($_POST["grpApprovers"])) { } // add mandatory reviewers/approvers -$docAccess = $folder->getReadAccessList(); +$docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp); $res=$user->getMandatoryReviewers(); foreach ($res as $r){ diff --git a/op/op.AddMultiDocument.php b/op/op.AddMultiDocument.php index b469ed590..090ab68be 100644 --- a/op/op.AddMultiDocument.php +++ b/op/op.AddMultiDocument.php @@ -128,7 +128,7 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) { } // add mandatory reviewers/approvers - $docAccess = $folder->getReadAccessList(); + $docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp); $res=$user->getMandatoryReviewers(); foreach ($res as $r){ diff --git a/op/op.UpdateDocument.php b/op/op.UpdateDocument.php index 6d749c39d..94dfb2ddf 100644 --- a/op/op.UpdateDocument.php +++ b/op/op.UpdateDocument.php @@ -130,7 +130,7 @@ if ($_FILES['userfile']['error'] == 0) { } // add mandatory reviewers/approvers - $docAccess = $folder->getReadAccessList(); + $docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp); $res=$user->getMandatoryReviewers(); foreach ($res as $r){ diff --git a/op/op.UpdateDocument2.php b/op/op.UpdateDocument2.php index 30eb04cb2..42f669617 100644 --- a/op/op.UpdateDocument2.php +++ b/op/op.UpdateDocument2.php @@ -110,7 +110,7 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) { } // add mandatory reviewers/approvers - $docAccess = $folder->getReadAccessList(); + $docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp); $res=$user->getMandatoryReviewers(); foreach ($res as $r){