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

    r538 r540  
    2121 } 
    2222  
    23  public function isAuthorized()  
    24  {       
    25    if (isset( $this->params[Configure::read('Routing.admin')] )): 
    26        if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
    27          return true; 
    28        else: 
    29              return false; 
    30        endif;    
    31    endif; 
    32  
    33    return true; 
    34  } 
    35  
    36   /***   === ADMIN METHODS===  ***/ 
     23 /***   === ADMIN METHODS===  ***/ 
    3724   
    38   public function admin_add()  
    39   { 
     25 public function admin_add()  
     26 { 
    4027   if (!empty($this->data["Answer"])) 
    4128   {