Conjunto 42ac972 en sipes


Ignorar:
Fecha y hora:
26/08/2016 09:11:09 (hace 8 años)
Autor:
lhernandez <lhernandez@…>
Branches:
stable, version-3.0
Children:
66a2dec
Parents:
6cf7ba9
Mensaje:

se restringio la visivilidad de la opcion reportes para los roles permitidos

Fichero:
1 editado

Leyenda

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

    r6cf7ba9 r42ac972  
    421421  }
    422422  else {
    423     $page_content .= '<h4>Reportes:</h4>';
    424     $page_content .= '<table align=\"center\" border=\"0\"><tr>';
     423    $reportes = FALSE;
    425424    if ($ente->nid && $user->ambito_user) {
     425      $reportes = TRUE;
    426426      $ambito = taxonomy_get_term($user->ambito_user);
    427427      $terms = taxonomy_get_children($ambito->tid);
     
    437437    $page_enlace = '';
    438438    if ($ente_planificador && $ente_planificador->tipo == 1) {
     439      $reportes = TRUE;
    439440      $roles_type = _ente_planificador_hierarchical_get_roles_type($ente_planificador->tipo);
    440441      foreach($roles_type as $rol => $text) {
     
    448449      }
    449450    }
    450     $page_content .= $page_enlace;
    451     $page_content .= '</tr></table>';
    452     $page_content .= '<br><br>';
     451    if ($reportes) {
     452      $page_content .= '<h4>Reportes:</h4>';
     453      $page_content .= '<table align=\"center\" border=\"0\"><tr>';
     454      $page_content .= $page_enlace;
     455      $page_content .= '</tr></table>';
     456      $page_content .= '<br><br>';
     457    }
    453458  }
    454459
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.