Show
Ignore:
Timestamp:
05/19/08 22:55:10 (8 months ago)
Author:
aarkerio
Message:

Contrller fixed

Files:
1 modified

Legend:

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

    r510 r526  
    3030 public function isAuthorized()  
    3131 {       
    32     if (isset( $this->params[Configure::read('Routing.admin')] ))  
    33     { 
    34         if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 )  // admin and teachers 
    35         { 
    36         return true; 
    37         }  
    38     }  
    39     return false;  // go away !! 
     32   if (isset( $this->params[Configure::read('Routing.admin')] )): 
     33        if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
     34          return true; 
     35        endif; 
     36   endif; 
     37   return false;  // go away !! 
    4038 } 
    4139