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

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