- Timestamp:
- 11/06/12 15:05:04 (11 years ago)
- Location:
- trunk/workflow/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.so_adminaccess.inc.php
r3255 r7495 374 374 while ($row = $result->fetchRow()) { 375 375 if (isset($requiredLevel)) { 376 //$authorized = $this->_checkLevelNumber($row['nivel'], $requiredLevel); 377 $authorized = $this->checkUser AccessToResource($type,$uid,$row['numvalue'],$requiredLevel);376 //$authorized = $this->_checkLevelNumber($row['nivel'], $requiredLevel); 377 $authorized = $this->checkUserGroupAccessToResource($type,$uid,$row['numvalue'],$requiredLevel); 378 378 if ($authorized) { 379 379 $output[] = $row['numvalue']; -
trunk/workflow/inc/class.so_orgchart.inc.php
r7013 r7495 68 68 $authorized = false; 69 69 if ($checkType) 70 $authorized = $this->acl->checkUser AccessToType('ORG', $this->userID);70 $authorized = $this->acl->checkUserGroupAccessToType('ORG', $this->userID); 71 71 else 72 72 { … … 74 74 $authorized = false; 75 75 else 76 $authorized = $this->acl->checkUser AccessToResource('ORG', $this->userID, (int) $organizationID);76 $authorized = $this->acl->checkUserGroupAccessToResource('ORG', $this->userID, (int) $organizationID); 77 77 } 78 78 … … 144 144 else 145 145 { 146 $organizations = $this->acl->getUser Permissions("ORG", $this->userID, 0);146 $organizations = $this->acl->getUserGroupPermissions("ORG", $this->userID, 0); 147 147 $organizations[] = -1; 148 148 $query = "SELECT organizacao_id, nome, descricao, ativa, url_imagem, sitio FROM organizacao WHERE (organizacao_id IN (" . implode(',', $organizations) . ")) ORDER BY nome"; … … 1164 1164 * This condition is true if the current user is the same user that's being retrieved 1165 1165 */ 1166 $authorized = $this->acl->checkUser AccessToResource('ORG', $account_id, (int) $organizationID, 1);1166 $authorized = $this->acl->checkUserGroupAccessToResource('ORG', $account_id, (int) $organizationID, 1); 1167 1167 if (($account_id == $employeeID) || ($authorized)) { 1168 1168 $mobile = $employeeEntry['mobile'];
Note: See TracChangeset
for help on using the changeset viewer.