Changeset 2492 for sandbox/workflow/branches/993/inc/engine
- Timestamp:
- 04/12/10 16:21:32 (14 years ago)
- Location:
- sandbox/workflow/branches/993/inc/engine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/branches/993/inc/engine/config.egw.inc.php
r2372 r2492 151 151 function galaxia_user_can_admin_process() 152 152 { 153 return (Factory::getInstance('workflow_acl')->checkWorkflowAdmin( $GLOBALS['phpgw_info']['user']['account_id']) || $GLOBALS['phpgw']->acl->check('admin_workflow', 1, 'workflow'));153 return (Factory::getInstance('workflow_acl')->checkWorkflowAdmin(Settings::get('expresso', 'user', 'account_id')) || $GLOBALS['phpgw']->acl->check('admin_workflow', 1, 'workflow')); 154 154 } 155 155 } … … 165 165 function galaxia_user_can_admin_instance() 166 166 { 167 return (Factory::getInstance('workflow_acl')->checkWorkflowAdmin( $GLOBALS['phpgw_info']['user']['account_id']) || $GLOBALS['phpgw']->acl->check('admin_instance_workflow', 1, 'workflow'));167 return (Factory::getInstance('workflow_acl')->checkWorkflowAdmin(Settings::get('expresso', 'user', 'account_id')) || $GLOBALS['phpgw']->acl->check('admin_instance_workflow', 1, 'workflow')); 168 168 } 169 169 } … … 179 179 function galaxia_user_can_clean_instances() 180 180 { 181 return (Factory::getInstance('workflow_acl')->checkWorkflowAdmin( $GLOBALS['phpgw_info']['user']['account_id']) || $GLOBALS['phpgw']->acl->check('cleanup_workflow', 1, 'workflow'));181 return (Factory::getInstance('workflow_acl')->checkWorkflowAdmin(Settings::get('expresso', 'user', 'account_id')) || $GLOBALS['phpgw']->acl->check('cleanup_workflow', 1, 'workflow')); 182 182 } 183 183 } … … 191 191 function galaxia_user_can_clean_aborted_instances() 192 192 { 193 return (Factory::getInstance('workflow_acl')->checkWorkflowAdmin( $GLOBALS['phpgw_info']['user']['account_id']) || $GLOBALS['phpgw']->acl->check('cleanup_aborted_workflow', 1, 'workflow'));193 return (Factory::getInstance('workflow_acl')->checkWorkflowAdmin(Settings::get('expresso', 'user', 'account_id')) || $GLOBALS['phpgw']->acl->check('cleanup_aborted_workflow', 1, 'workflow')); 194 194 } 195 195 } … … 203 203 function galaxia_user_can_monitor() 204 204 { 205 return (Factory::getInstance('workflow_acl')->checkWorkflowAdmin( $GLOBALS['phpgw_info']['user']['account_id']) || $GLOBALS['phpgw']->acl->check('monitor_workflow', 1, 'workflow'));205 return (Factory::getInstance('workflow_acl')->checkWorkflowAdmin(Settings::get('expresso', 'user', 'account_id')) || $GLOBALS['phpgw']->acl->check('monitor_workflow', 1, 'workflow')); 206 206 } 207 207 } … … 219 219 { 220 220 if ($user == '') 221 $user = $GLOBALS['phpgw_info']['user']['account_id'];221 $user = Settings::get('expresso', 'user', 'account_id'); 222 222 223 223 $memberships = Factory::getInstance('WorkflowLDAP')->getUserGroups($user); … … 271 271 function galaxia_retrieve_running_user() 272 272 { 273 return ($GLOBALS['phpgw_info']['user']['account_id']);273 return Settings::get('expresso', 'user', 'account_id'); 274 274 } 275 275 } -
sandbox/workflow/branches/993/inc/engine/src/API/BaseActivity.php
r2372 r2492 242 242 243 243 // retrieve user_groups information in an array containing all groups for this user 244 $user_groups = galaxia_retrieve_user_groups( $GLOBALS['phpgw_info']['user']['account_id']);244 $user_groups = galaxia_retrieve_user_groups(Settings::get('expresso', 'user', 'account_id') ); 245 245 // and append it to query 246 246 $query = 'select `wf_role_id` from `'.GALAXIA_TABLE_PREFIX."user_roles`
Note: See TracChangeset
for help on using the changeset viewer.