mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
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:
parent
9032170149
commit
bbd1fd6445
|
@ -141,7 +141,7 @@ if (isset($_POST["grpApprovers"])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// add mandatory reviewers/approvers
|
// add mandatory reviewers/approvers
|
||||||
$docAccess = $folder->getReadAccessList();
|
$docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp);
|
||||||
$res=$user->getMandatoryReviewers();
|
$res=$user->getMandatoryReviewers();
|
||||||
foreach ($res as $r){
|
foreach ($res as $r){
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// add mandatory reviewers/approvers
|
// add mandatory reviewers/approvers
|
||||||
$docAccess = $folder->getReadAccessList();
|
$docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp);
|
||||||
$res=$user->getMandatoryReviewers();
|
$res=$user->getMandatoryReviewers();
|
||||||
foreach ($res as $r){
|
foreach ($res as $r){
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ if ($_FILES['userfile']['error'] == 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// add mandatory reviewers/approvers
|
// add mandatory reviewers/approvers
|
||||||
$docAccess = $folder->getReadAccessList();
|
$docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp);
|
||||||
$res=$user->getMandatoryReviewers();
|
$res=$user->getMandatoryReviewers();
|
||||||
foreach ($res as $r){
|
foreach ($res as $r){
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ if( move_uploaded_file( $source_file_path, $target_file_path ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// add mandatory reviewers/approvers
|
// add mandatory reviewers/approvers
|
||||||
$docAccess = $folder->getReadAccessList();
|
$docAccess = $folder->getReadAccessList($settings->_enableAdminRevApp, $settings->_enableOwnerRevApp);
|
||||||
$res=$user->getMandatoryReviewers();
|
$res=$user->getMandatoryReviewers();
|
||||||
foreach ($res as $r){
|
foreach ($res as $r){
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user