take enableAdminRevApp and enableOwnerRevApp into account

getReadAccessList() doesn't return the owner and administrators
unless explicitly requested by passing true for the first and second
parameter
This commit is contained in:
Uwe Steinmann 2014-03-14 15:11:40 +01:00
parent 9032170149
commit bbd1fd6445
4 changed files with 4 additions and 4 deletions

View File

@ -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){

View File

@ -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){

View File

@ -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){

View File

@ -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){