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

    r537 r538  
    2828    endif; 
    2929 } 
    30  
     30  
    3131 public function isAuthorized()  
    3232 {       
    3333   if (isset( $this->params[Configure::read('Routing.admin')] )): 
    34         if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
    35           return true; 
    36         endif; 
     34       if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
     35         return true; 
     36       else: 
     37             return false; 
     38       endif;    
    3739   endif; 
    38    return false;  // go away !! 
     40 
     41   return true; 
    3942 } 
    40  
     43  
    4144 public function add() 
    4245 {