Ignore:
Timestamp:
09/15/10 17:06:46 (14 years ago)
Author:
pereira.jair
Message:

Ticket #1186 - Alterado modulo administrativo do organograma p/ definir diferentes niveis de usuarios.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/workflow/inc/class.so_orgchart.inc.php

    r3225 r3255  
    145145                else 
    146146                { 
    147                         $organizations = $this->acl->getUserPermissions("ORG", $this->userID); 
     147                        $organizations = $this->acl->getUserPermissions("ORG", $this->userID, 0); 
    148148                        $organizations[] = -1; 
    149149                        $query = "SELECT organizacao_id, nome, descricao, ativa, url_imagem, sitio FROM organizacao WHERE (organizacao_id IN (" . implode(',', $organizations)  . ")) ORDER BY nome"; 
     
    11261126                $mobile         = ''; 
    11271127                $homePhone  = ''; 
    1128  
     1128                 
    11291129                /* 
    11301130                 * Check if the current user can view the mobile and homePhone of the employee 
     
    11321132                 * that's being retrieved 
    11331133                 */ 
    1134                 if (in_array($account_id,$arr_supervisores) || ($account_id == $employeeID)) { 
     1134                $authorized = $this->acl->checkUserAccessToResource('ORG', $account_id, (int) $organizationID, 1);  
     1135                if ((in_array($account_id,$arr_supervisores) || ($account_id == $employeeID)) || ($authorized)) { 
    11351136                        $mobile         = $employeeEntry['mobile']; 
    11361137                        $homePhone      = $employeeEntry['homephone']; 
Note: See TracChangeset for help on using the changeset viewer.