HOR-823: Usuarios operadores no pueden ver 'Summary' de casos en la bandeja 'Unassigned'

correciones
This commit is contained in:
mcuiza
2016-04-21 12:56:27 -04:00
parent 84a88c9bc2
commit 9e3dffc813
2 changed files with 3 additions and 6 deletions

View File

@@ -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();

View File

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