Changeset 3255 for branches/2.2/workflow/inc/class.so_orgchart.inc.php
- Timestamp:
- 09/15/10 17:06:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/inc/class.so_orgchart.inc.php
r3225 r3255 145 145 else 146 146 { 147 $organizations = $this->acl->getUserPermissions("ORG", $this->userID );147 $organizations = $this->acl->getUserPermissions("ORG", $this->userID, 0); 148 148 $organizations[] = -1; 149 149 $query = "SELECT organizacao_id, nome, descricao, ativa, url_imagem, sitio FROM organizacao WHERE (organizacao_id IN (" . implode(',', $organizations) . ")) ORDER BY nome"; … … 1126 1126 $mobile = ''; 1127 1127 $homePhone = ''; 1128 1128 1129 1129 /* 1130 1130 * Check if the current user can view the mobile and homePhone of the employee … … 1132 1132 * that's being retrieved 1133 1133 */ 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)) { 1135 1136 $mobile = $employeeEntry['mobile']; 1136 1137 $homePhone = $employeeEntry['homephone'];
Note: See TracChangeset
for help on using the changeset viewer.