Ignore:
Timestamp:
03/29/10 14:46:01 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Merged 2197:2356 /sandbox/workflow/branches/609/ em /sandbox/workflow/trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/trunk/inc/engine/src/common/WfSecurity.php

    r795 r2372  
    2323   * @access public 
    2424   */ 
    25   function WfSecurity(&$db)  
     25  function WfSecurity()  
    2626  { 
    2727    $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(); 
    3229  } 
    3330 
     
    5855      ); 
    5956      //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'); 
    6158      $myProcess->getProcess($pId); 
    6259      $this->processesConfig[$pId] = $myProcess->getConfigValues($arrayConf); 
     
    7875  function checkUserAccess($user, $activity_id, $readonly=false)  
    7976  { 
     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 
    8082    //group mapping, warning groups and user can have the same id 
    8183    if ($user[0] != 'p') 
     
    577579      if (!(isset($this->pm))) 
    578580      { 
    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'); 
    581582      } 
    582583      //$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.