Ignore:
Timestamp:
Aug 24, 2009, 8:53:09 PM (15 years ago)
Author:
george
Message:
  • Přidáno: Podpora pro oprávnění uživatelů a skupin.
  • Upraveno: V include souborech použita cesta aktuálního skriptu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/Controller/Cluster.php

    r74 r76  
    66  {
    77    $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());
    1013  }   
    1114
     
    1316  {
    1417    $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());
    1723  }   
    1824
     
    2026  {
    2127    $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());
    2433  }   
    2534 
     
    2736  {
    2837    $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());
    3143  }   
    3244
     
    3446  {
    3547    $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());
    3853  }   
    3954}
Note: See TracChangeset for help on using the changeset viewer.