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

    r528 r538  
    2323    parent::beforeFilter(); 
    2424    $this->Auth->allow(array('rss', 'search')); 
    25  } 
     25 }  
    2626  
    2727 public function isAuthorized()  
    2828 {       
    29     if (isset( $this->params[Configure::read('Routing.admin')] )): 
    30         if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
     29   if (isset( $this->params[Configure::read('Routing.admin')] )): 
     30       if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
    3131         return true; 
    32         endif; 
    33     endif; 
    34     return false;  // go away !! 
     32       else: 
     33             return false; 
     34       endif;    
     35   endif; 
     36 
     37   return true; 
    3538 } 
    3639