From 9e3dffc81399e603b0753b51ad6f1c56192774f5 Mon Sep 17 00:00:00 2001 From: mcuiza Date: Thu, 21 Apr 2016 12:56:27 -0400 Subject: [PATCH] HOR-823: Usuarios operadores no pueden ver 'Summary' de casos en la bandeja 'Unassigned' correciones --- gulliver/system/class.httpProxyController.php | 3 ++- workflow/engine/controllers/appProxy.php | 6 +----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/gulliver/system/class.httpProxyController.php b/gulliver/system/class.httpProxyController.php index 757777771..84ffbfab1 100755 --- a/gulliver/system/class.httpProxyController.php +++ b/gulliver/system/class.httpProxyController.php @@ -93,6 +93,7 @@ class HttpProxyController */ public function call ($name) { + $result = new stdClass(); try { $result = $this->$name( $this->__request__ ); @@ -122,7 +123,7 @@ class HttpProxyController break; } $result->error = $e->getMessage(); - + $result->exception = new stdClass(); $result->exception->class = get_class( $e ); $result->exception->code = $e->getCode(); $result->exception->trace = $e->getTraceAsString(); diff --git a/workflow/engine/controllers/appProxy.php b/workflow/engine/controllers/appProxy.php index b93389892..dae89ea0e 100644 --- a/workflow/engine/controllers/appProxy.php +++ b/workflow/engine/controllers/appProxy.php @@ -186,11 +186,7 @@ class AppProxy extends HttpProxyController G::LoadClass( 'case' ); $case = new Cases(); - - if ($RBAC->userCanAccess( 'PM_ALLCASES' ) < 0 && $case->userParticipatedInCase( $httpData->appUid, $_SESSION['USER_LOGGED'] ) == 0) { - throw new Exception( G::LoadTranslation( 'ID_NO_PERMISSION_NO_PARTICIPATED' ) ); - } - + if ($httpData->action == 'sent') { // Get the last valid delegation for participated list $criteria = new Criteria(); $criteria->addSelectColumn(AppDelegationPeer::DEL_INDEX);