Show
Ignore:
Timestamp:
05/21/08 11:43:42 (8 months ago)
Author:
aarkerio
Message:

New Try

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/news_controller.php

    r538 r540  
    2424   parent::beforeFilter(); 
    2525   $this->Auth->allow(array('view', 'display', 'rss', 'category')); 
    26  } 
    27   
    28  public function isAuthorized()  
    29  {       
    30    if (isset( $this->params[Configure::read('Routing.admin')] )): 
    31        if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
    32          return true; 
    33        else: 
    34              return false; 
    35        endif;    
    36    endif; 
    37  
    38    return true; 
    3926 } 
    4027