Conjunto eba0fce en sipes


Ignorar:
Fecha y hora:
22/08/2016 16:04:00 (hace 8 años)
Autor:
root <root@…>
Branches:
stable, version-3.0
Children:
6cf7ba9
Parents:
189df02
Mensaje:

se corrigio el acceso a los reportes

Fichero:
1 editado

Leyenda

No modificado
Añadido
Eliminado
  • 0.3-modules/principal_inicio_sipp/principal_inicio_sipp.module

    ra97d84e reba0fce  
    405405  $page_content .= '<br><br>';
    406406
    407   $page_content .= '<h4>Reportes:</h4>';
    408   $page_content .= '<table align=\"center\" border=\"0\"><tr>';
    409 
    410407  if ($ente && $ente->nid) {
    411408    $ente_planificador = ente_planificador_leer_ente_planificadores($ente->nid);
     
    415412  //$page_content .= "<td width=\"25%\" align=\"center\">".l($image_tag, 'sipp_report_mpp/sectorial', array('html'=>TRUE))."</td>";
    416413
    417   if (user_access('edit own planificador')) {
     414  if (!$ente_planificador->tipo && user_access('edit own planificador')) {
     415    $page_content .= '<h4>Reportes:</h4>';
     416    $page_content .= '<table align=\"center\" border=\"0\"><tr>';
    418417    $image_tag = theme_image($path_modulo_menu_principal.'/img/reportes/reports.png').'<br>'.'<b>'.t('Reporte Para la Coordinación General').'</b>';
    419418    $page_content .= "<td width=\"25%\" align=\"center\">".l($image_tag, 'sipp_report_mpp/corrdgen', array('html'=>TRUE))."</td>";
     419    $page_content .= '</tr></table>';
     420    $page_content .= '<br><br>';
    420421  }
    421422  else {
     423    $page_content .= '<h4>Reportes:</h4>';
     424    $page_content .= '<table align=\"center\" border=\"0\"><tr>';
    422425    if ($ente->nid && $user->ambito_user) {
    423426      $ambito = taxonomy_get_term($user->ambito_user);
     
    441444    }
    442445    $page_content .= $page_enlace;
    443   }
    444 
    445   $page_content .= '</tr></table>';
    446   $page_content .= '<br><br>';
     446    $page_content .= '</tr></table>';
     447    $page_content .= '<br><br>';
     448  }
    447449
    448450  return $page_content;
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.