- Timestamp:
- 04/12/10 16:21:32 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/993/inc/class.ui_adminprocesses.inc.php
r2372 r2492 57 57 $this->workflow_acl = Factory::getInstance('workflow_acl'); 58 58 $denyAccess = true; 59 if ($this->workflow_acl->checkWorkflowAdmin( $GLOBALS['phpgw_info']['user']['account_id']))59 if ($this->workflow_acl->checkWorkflowAdmin( Settings::get('expresso', 'user', 'account_id'))) 60 60 { 61 61 /* the user is an Expresso/Workflow admin */ … … 68 68 /* check if the user can admin the informed process */ 69 69 if ($this->wf_p_id != 0) 70 $denyAccess = !$this->workflow_acl->check_process_access( $GLOBALS['phpgw_info']['user']['account_id'], $this->wf_p_id);70 $denyAccess = !$this->workflow_acl->check_process_access( Settings::get('expresso', 'user', 'account_id'), $this->wf_p_id); 71 71 else 72 72 $denyAccess = false; … … 128 128 } 129 129 130 if (!Factory::getInstance('workflow_acl')->checkWorkflowAdmin( $GLOBALS['phpgw_info']['user']['account_id']))131 { 132 $proc_ids = $this->workflow_acl->get_granted_processes( $GLOBALS['phpgw_info']['user']['account_id']);130 if (!Factory::getInstance('workflow_acl')->checkWorkflowAdmin( Settings::get('expresso', 'user', 'account_id' ))) 131 { 132 $proc_ids = $this->workflow_acl->get_granted_processes( Settings::get('expresso', 'user', 'account_id') ); 133 133 if (count($proc_ids)) 134 134 {
Note: See TracChangeset
for help on using the changeset viewer.