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

    r538 r540  
    2222 } 
    2323  
    24  public function isAuthorized()  
    25  {       
    26    if (isset( $this->params[Configure::read('Routing.admin')] )): 
    27        if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
    28          return true; 
    29        else: 
    30              return false; 
    31        endif;    
    32    endif; 
    33  
    34    return true; 
    35  } 
    36   
    37  
    38  /**** 
    39      ===== ADMIN SECTION ========== 
    40  ****/ 
     24 /****     ===== ADMIN SECTION ========== ****/ 
    4125 public function admin_start() 
    4226  {