From 38bccb57e1be787aa44bd385dc2f1f1402c659dd Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Thu, 9 Mar 2017 19:59:48 -0400 Subject: [PATCH] delete the participate --- workflow/engine/classes/model/AppDocument.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/workflow/engine/classes/model/AppDocument.php b/workflow/engine/classes/model/AppDocument.php index 907d7bcfa..3e0c46cc0 100644 --- a/workflow/engine/classes/model/AppDocument.php +++ b/workflow/engine/classes/model/AppDocument.php @@ -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; } }