+++ /dev/null
-<?php
-require_once 'Pman/Core/DataObjects/Person.php';
-
-
-/**
- *
- * This class should probably only be used on the web version of mtrack, not on the modular verison..?
- *
- */
-
-class Pman_MTrack_DataObjects_Person extends Pman_Core_DataObjects_Person
-{
-
-
-
-
- function applyFilters($q, $au, $roo)
- {
- parent::applyFilters($q,$au,$roo);
- $tn = $this->tableName();
-
- // when a ticket is selected, then only allow people who are members of the project related to thtat ticket...
- if (isset($q['query']['ticket_id'])) {
- // find out what state the ticket is in.
- $t = DB_DataObject::Factory('mtrack_ticket');
- $t->autoJoin();
- $t->get($q['query']['ticket_id']);
-
- if (!$this->checkPerm('S', $au)) {
- $roo->jerr("permssion denied to query state of ticket");
- }
-
- $p = DB_DataObject::factory('ProjectDirectory');
- $pids = array($t->project_id);
-
- $peps = $p->people($pids);
-
- $this->whereAddIn($this->tableName().'.id', $peps, 'int');
-
- //$this->whereAdd('join_prole != ''");
-
- }
-
-
-
- // not owner.. can only see people involved in projects that they are part of..
- //DB_DataObject::debugLevel(1);
-
-
-
-
-
- //if ($au->company()->comptype == 'OWNER') {
- // return;
- //}
-
- }
-
-}
\ No newline at end of file