Changeset 3290
- Timestamp:
- 09/24/10 16:39:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.so_orgchart.inc.php
r3255 r3290 1113 1113 $employeeStatusInfo = $orgchart->getEmployeeStatus($employeeInfo['funcionario_status_id']); 1114 1114 $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 substitures1118 $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 }1125 1115 1126 1116 $mobile = ''; … … 1129 1119 /* 1130 1120 * 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 1133 1122 */ 1134 1123 $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)) { 1136 1125 $mobile = $employeeEntry['mobile']; 1137 1126 $homePhone = $employeeEntry['homephone'];
Note: See TracChangeset
for help on using the changeset viewer.