MTrackWeb/Roo.php
[web.mtrack] / MTrackWeb / Roo.php
1 <?php
2
3
4 require_once 'Pman/Roo.php';
5
6
7 /**
8  * This extends the standard Roo API
9  *
10  * however it has to verify that we send data protected, as it's pretty open!!!
11  *
12  * 
13  *
14  */
15
16 class MTrackWeb_Roo extends Pman_Roo
17 {
18     var $validTables = array(
19         'mtrack_ticket', /// all of these MUST have applyFilters, and check authenication..
20         'mtrack_change',
21         'core_enum',
22         'Person',
23         'mtrack_milestone',
24         'Projects'
25         
26     );
27     
28     function getAuth() {
29         Pman::getAuth(); // load company!
30         $au = $this->getAuthUser();
31         $this->authUser =  false;
32         if ($au) {
33            $this->authUser = $au;
34         }
35         
36         return true;
37     }
38     
39     function delete()
40     {
41         $this->jerr("Delete not permitted yet...");
42         // only post requests..???
43         // need perms sorting out first.
44     }
45     
46 }