Ignore:
Timestamp:
11/06/12 15:05:04 (11 years ago)
Author:
asaikawa
Message:

Ticket #3184 - Corrigida a liberacao de acesso a administracao do organograma

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.so_orgchart.inc.php

    r7013 r7495  
    6868                $authorized = false; 
    6969                if ($checkType) 
    70                         $authorized = $this->acl->checkUserAccessToType('ORG', $this->userID); 
     70                        $authorized = $this->acl->checkUserGroupAccessToType('ORG', $this->userID); 
    7171                else 
    7272                { 
     
    7474                                $authorized = false; 
    7575                        else 
    76                                 $authorized = $this->acl->checkUserAccessToResource('ORG', $this->userID, (int) $organizationID); 
     76                                $authorized = $this->acl->checkUserGroupAccessToResource('ORG', $this->userID, (int) $organizationID); 
    7777                } 
    7878 
     
    144144                else 
    145145                { 
    146                         $organizations = $this->acl->getUserPermissions("ORG", $this->userID, 0); 
     146                        $organizations = $this->acl->getUserGroupPermissions("ORG", $this->userID, 0); 
    147147                        $organizations[] = -1; 
    148148                        $query = "SELECT organizacao_id, nome, descricao, ativa, url_imagem, sitio FROM organizacao WHERE (organizacao_id IN (" . implode(',', $organizations)  . ")) ORDER BY nome"; 
     
    11641164                 * This condition is true if the current user is the same user that's being retrieved 
    11651165                 */ 
    1166                 $authorized = $this->acl->checkUserAccessToResource('ORG', $account_id, (int) $organizationID, 1);  
     1166                $authorized = $this->acl->checkUserGroupAccessToResource('ORG', $account_id, (int) $organizationID, 1);  
    11671167                if (($account_id == $employeeID) || ($authorized)) { 
    11681168                        $mobile         = $employeeEntry['mobile']; 
Note: See TracChangeset for help on using the changeset viewer.