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/HomePage.php

    r73 r76  
    66  {
    77    $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());
    1013  }
    1114 
     
    1316  {
    1417    $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());
    1723  }
    1824
     
    2026  {
    2127    $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());
    2433  }
    2534}
Note: See TracChangeset for help on using the changeset viewer.