Changeset 78 for trunk/www/Application/Controller/Task.php
- Timestamp:
- Sep 11, 2009, 8:18:38 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/Controller/Task.php
r72 r78 1 1 <?php 2 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 2 4 3 5 class TaskController extends Controller … … 6 8 { 7 9 $Page = new PageView($this->System); 8 $View = new TaskView($this->System); 9 return($Page->GetOutput($View->ItemList())); 10 if($this->System->Modules['Permission']->Check('Task', 'ItemList')) 11 { 12 $View = new TaskView($this->System); 13 return($Page->GetOutput($View->ItemList())); 14 } else return($Page->AccessDenied()); 10 15 } 11 16 … … 13 18 { 14 19 $Page = new PageView($this->System); 15 $View = new TaskView($this->System); 16 return($Page->GetOutput($View->ErrorLog())); 20 if($this->System->Modules['Permission']->Check('Task', 'ErrorLog')) 21 { 22 $View = new TaskView($this->System); 23 return($Page->GetOutput($View->ErrorLog())); 24 } else return($Page->AccessDenied()); 17 25 } 18 26 … … 20 28 { 21 29 $Page = new PageView($this->System); 22 $View = new TaskView($this->System); 23 return($Page->GetOutput($View->StandardLog())); 30 if($this->System->Modules['Permission']->Check('Task', 'StandardLog')) 31 { 32 $View = new TaskView($this->System); 33 return($Page->GetOutput($View->StandardLog())); 34 } else return($Page->AccessDenied()); 24 35 } 25 36 }
Note:
See TracChangeset
for help on using the changeset viewer.