- Timestamp:
- 03/29/10 14:46:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/workflow/trunk/inc/engine/src/common/WfSecurity.php
r795 r2372 23 23 * @access public 24 24 */ 25 function WfSecurity( &$db)25 function WfSecurity() 26 26 { 27 27 $this->child_name = 'WfSecurity'; 28 parent::Base($db); 29 require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'Instance.php'); 30 require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'Process.php'); 31 require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'API'.SEP.'BaseActivity.php'); 28 parent::Base(); 32 29 } 33 30 … … 58 55 ); 59 56 //check theses values for this process and store the result for this object life duration 60 $myProcess = new Process($this->db);57 $myProcess = &Factory::newInstance('Process'); 61 58 $myProcess->getProcess($pId); 62 59 $this->processesConfig[$pId] = $myProcess->getConfigValues($arrayConf); … … 78 75 function checkUserAccess($user, $activity_id, $readonly=false) 79 76 { 77 /* if activity is non-interactive is not necessary checking user access */ 78 $activity = &Factory::getInstance('BaseActivity')->getActivity($activity_id); 79 if (!$activity->isInteractive()) 80 return true; 81 80 82 //group mapping, warning groups and user can have the same id 81 83 if ($user[0] != 'p') … … 577 579 if (!(isset($this->pm))) 578 580 { 579 require_once(GALAXIA_LIBRARY.SEP.'src'.SEP.'ProcessManager'.SEP.'ProcessManager.php'); 580 $this->pm = new ProcessManager($this->db); 581 $this->pm = &Factory::newInstance('ProcessManager'); 581 582 } 582 583 //$this->error[] = 'DEBUG: checking to see if there is no view activities on process :'.$pId.':'.$this->pm->get_process_view_activity($pId);
Note: See TracChangeset
for help on using the changeset viewer.