Show
Ignore:
Timestamp:
05/21/08 01:02:56 (8 months ago)
Author:
aarkerio
Message:

New Try

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/glossaries_controller.php

    r526 r538  
    2222   parent::beforeFilter(); 
    2323 } 
     24 
    2425  
    2526 public function isAuthorized()  
    2627 {       
    2728   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       if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
    2930         return true; 
    30         endif; 
    31     endif; 
    32     return false;  // go away !! 
     31       else: 
     32             return false; 
     33       endif;    
     34   endif; 
     35 
     36   return true; 
    3337 } 
    34      
     38   
    3539 public function display($username) 
    3640 {