Ignore:
Timestamp:
04/12/10 16:21:32 (14 years ago)
Author:
pedroerp
Message:

Ticket #993 - Trocando acessos à GLOBALS por acessos à Settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/993/inc/class.workflow_processmanager.inc.php

    r2372 r2492  
    4141                        if (isset($_GET['p_id'])) 
    4242                        { 
    43                                 if (!($this->workflow_acl->checkWorkflowAdmin($GLOBALS['phpgw_info']['user']['account_id']) || $this->workflow_acl->check_process_access($GLOBALS['phpgw_info']['user']['account_id'], (int) $_GET['p_id']))) 
     43                                if (!($this->workflow_acl->checkWorkflowAdmin(Settings::get('expresso', 'user', 'account_id')) || $this->workflow_acl->check_process_access(Settings::get('expresso', 'user', 'account_id'), (int) $_GET['p_id']))) 
    4444                { 
    4545                    $GLOBALS['phpgw']->common->phpgw_header(); 
     
    633633                                $this->_rec_copy($old_name,$new_name); 
    634634 
    635                          $this->workflow_acl->add_process_admins($new_id, array( $GLOBALS['phpgw_info']['user']['account_id'] )); 
     635                         $this->workflow_acl->add_process_admins($new_id, array( Settings::get('expresso', 'user', 'account_id') )); 
    636636 
    637637                         return $new_id; 
     
    665665            if (!$pId) 
    666666            { 
    667                                 $this->workflow_acl->add_process_admins($id, array( $GLOBALS['phpgw_info']['user']['account_id'] ) ); 
     667                                $this->workflow_acl->add_process_admins($id, array( Settings::get('expresso', 'user', 'account_id') ) ); 
    668668            } 
    669669 
Note: See TracChangeset for help on using the changeset viewer.