delete the participate

This commit is contained in:
Paula Quispe
2017-03-09 19:59:48 -04:00
parent 8daa371ca7
commit 38bccb57e1

View File

@@ -626,17 +626,14 @@ class AppDocument extends BaseAppDocument
array('OUTPUT_DOCUMENTS'=>'VIEW')
);
//If the user was not participated can not download
if (!$aUserCanAccess['participated']) {
return false;
}
//If the user does not have the process permission can not download
if (!in_array($sAppDocUid, $aUserCanAccess['objectPermissions']['OUTPUT_DOCUMENTS'])) {
return false;
if (in_array($sAppDocUid, $aUserCanAccess['objectPermissions']['OUTPUT_DOCUMENTS'])) {
return true;
}
} else {
return true;
}
return true;
return false;
}
}