Changeset 531

Show
Ignore:
Timestamp:
05/20/08 13:58:49 (8 months ago)
Author:
aarkerio
Message:

Login box fixed

Files:
1 modified

Legend:

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

    r438 r531  
    1717   
    1818  public $components    = array('Adds'); 
    19    
     19 
     20  public function beforeFilter() 
     21  { 
     22     parent::beforeFilter(); 
     23  } 
     24     
    2025  public function isAuthorized()  
    2126  {       
    22     if (isset( $this->params[Configure::read('Routing.admin')] ))  
    23     { 
    24         if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 )  // admin and teachers 
    25         { 
    26         return true; 
    27         }  
    28     }  
     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        endif;  
     31    endif; 
    2932    return false;  // go away !! 
    3033 }