Changeset 3290 for branches


Ignore:
Timestamp:
09/24/10 16:39:05 (14 years ago)
Author:
pereira.jair
Message:

Ticket #1186 - Removido a verificação de supervisores para exibir mobile e homephone.

File:
1 edited

Legend:

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

    r3255 r3290  
    11131113                $employeeStatusInfo                     = $orgchart->getEmployeeStatus($employeeInfo['funcionario_status_id']); 
    11141114                $account_id                                     = $_SESSION['phpgw_info']['workflow']['account_id']; 
    1115                 $organization_supervisors       = $orgchart->getOrganizationSupervisors($employeeInfo['organizacao_id']); 
    1116  
    1117                 // Make an array with all supervisors and their substitures 
    1118                 $arr_supervisores = array(); 
    1119                 foreach ($organization_supervisors as $supervisor) { 
    1120                         array_push($arr_supervisores,$supervisor['titular_funcionario_id']); 
    1121                         if ($supervisor['substituto_funcionario_id']) { 
    1122                                 array_push($arr_supervisores,$supervisor['substituto_funcionario_id']); 
    1123                         } 
    1124                 } 
    11251115 
    11261116                $mobile         = ''; 
     
    11291119                /* 
    11301120                 * Check if the current user can view the mobile and homePhone of the employee 
    1131                  * This condition is true if the current user is a supervisor or is the same user 
    1132                  * that's being retrieved 
     1121                 * This condition is true if the current user is the same user that's being retrieved 
    11331122                 */ 
    11341123                $authorized = $this->acl->checkUserAccessToResource('ORG', $account_id, (int) $organizationID, 1);  
    1135                 if ((in_array($account_id,$arr_supervisores) || ($account_id == $employeeID)) || ($authorized)) { 
     1124                if (($account_id == $employeeID) || ($authorized)) { 
    11361125                        $mobile         = $employeeEntry['mobile']; 
    11371126                        $homePhone      = $employeeEntry['homephone']; 
Note: See TracChangeset for help on using the changeset viewer.