HOR-823: Usuarios operadores no pueden ver 'Summary' de casos en la bandeja 'Unassigned'
correciones
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user