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

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