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

    r538 r540  
    2727         $this->Auth->allow(array('captcha', 'add')); 
    2828    endif; 
    29  } 
    30   
    31  public function isAuthorized()  
    32  {       
    33    if (isset( $this->params[Configure::read('Routing.admin')] )): 
    34        if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
    35          return true; 
    36        else: 
    37              return false; 
    38        endif;    
    39    endif; 
    40  
    41    return true; 
    4229 } 
    4330