Changeset 76 for trunk/www/Application/Controller/HomePage.php
- Timestamp:
- Aug 24, 2009, 8:53:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/Controller/HomePage.php
r73 r76 6 6 { 7 7 $Page = new PageView($this->System); 8 $View = new HomePageView($this->System); 9 return($Page->GetOutput($View->Welcome())); 8 if($this->System->Modules['Permission']->Check('HomePage', 'Show')) 9 { 10 $View = new HomePageView($this->System); 11 return($Page->GetOutput($View->Welcome())); 12 } else return($Page->AccessDenied()); 10 13 } 11 14 … … 13 16 { 14 17 $Page = new PageView($this->System); 15 $View = new HomePageView($this->System); 16 return($Page->GetOutput($View->Info())); 18 if($this->System->Modules['Permission']->Check('HomePage', 'Info')) 19 { 20 $View = new HomePageView($this->System); 21 return($Page->GetOutput($View->Info())); 22 } else return($Page->AccessDenied()); 17 23 } 18 24 … … 20 26 { 21 27 $Page = new PageView($this->System); 22 $View = new HomePageView($this->System); 23 return($Page->GetOutput($View->State())); 28 if($this->System->Modules['Permission']->Check('HomePage', 'State')) 29 { 30 $View = new HomePageView($this->System); 31 return($Page->GetOutput($View->State())); 32 } else return($Page->AccessDenied()); 24 33 } 25 34 }
Note:
See TracChangeset
for help on using the changeset viewer.