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.ui_adminroles.inc.php

    r2372 r2492  
    4444                $this->workflow_acl = Factory::getInstance('workflow_acl'); 
    4545                $denyAccess = true; 
    46                 if ($this->workflow_acl->checkWorkflowAdmin($GLOBALS['phpgw_info']['user']['account_id'])) 
     46                if ($this->workflow_acl->checkWorkflowAdmin(Settings::get('expresso', 'user', 'account_id'))) 
    4747                { 
    4848                        /* the user is an Expresso/Workflow admin */ 
     
    5555                                /* check if the user can admin the informed process */ 
    5656                                if ($this->wf_p_id != 0) 
    57                                         $denyAccess = !$this->workflow_acl->check_process_access($GLOBALS['phpgw_info']['user']['account_id'], $this->wf_p_id); 
     57                                        $denyAccess = !$this->workflow_acl->check_process_access(Settings::get('expresso', 'user', 'account_id'), $this->wf_p_id); 
    5858                                else 
    5959                                        $denyAccess = false; 
Note: See TracChangeset for help on using the changeset viewer.