Changeset 76 for trunk/www/Application/Controller/Cluster.php
- Timestamp:
- Aug 24, 2009, 8:53:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/Controller/Cluster.php
r74 r76 6 6 { 7 7 $Page = new PageView($this->System); 8 $View = new ClusterView($this->System); 9 return($Page->GetOutput($View->ItemList())); 8 if($this->System->Modules['Permission']->Check('Cluster', 'ItemList')) 9 { 10 $View = new ClusterView($this->System); 11 return($Page->GetOutput($View->ItemList())); 12 } else return($Page->AccessDenied()); 10 13 } 11 14 … … 13 16 { 14 17 $Page = new PageView($this->System); 15 $View = new ClusterView($this->System); 16 return($Page->GetOutput($View->Add())); 18 if($this->System->Modules['Permission']->Check('Cluster', 'Add')) 19 { 20 $View = new ClusterView($this->System); 21 return($Page->GetOutput($View->Add())); 22 } else return($Page->AccessDenied()); 17 23 } 18 24 … … 20 26 { 21 27 $Page = new PageView($this->System); 22 $View = new ClusterView($this->System); 23 return($Page->GetOutput($View->Restore())); 28 if($this->System->Modules['Permission']->Check('Cluster', 'Remove')) 29 { 30 $View = new ClusterView($this->System); 31 return($Page->GetOutput($View->Restore())); 32 } else return($Page->AccessDenied()); 24 33 } 25 34 … … 27 36 { 28 37 $Page = new PageView($this->System); 29 $View = new ClusterView($this->System); 30 return($Page->GetOutput($View->Show())); 38 if($this->System->Modules['Permission']->Check('Cluster', 'Show')) 39 { 40 $View = new ClusterView($this->System); 41 return($Page->GetOutput($View->Show())); 42 } else return($Page->AccessDenied()); 31 43 } 32 44 … … 34 46 { 35 47 $Page = new PageView($this->System); 36 $View = new ClusterView($this->System); 37 return($Page->GetOutput($View->Edit())); 48 if($this->System->Modules['Permission']->Check('Cluster', 'Edit')) 49 { 50 $View = new ClusterView($this->System); 51 return($Page->GetOutput($View->Edit())); 52 } else return($Page->AccessDenied()); 38 53 } 39 54 }
Note:
See TracChangeset
for help on using the changeset viewer.