getAuthUser()) { $this->jerr("invalid url (no auth)"); } } function get($id = '', $opts=array()) { $t = DB_DAtaObject::factory('mtrack_ticket'); $t->autoJoin(); if (empty($id) || !$t->get($id)) { $this->jerr('invalid ticket'); } if (!$t->checkPerm('S', $this->authUser)) { $this->jerr("access denied"); } $this->ticket = $t; // comments... // images.. } }