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

    r510 r538  
    2525    $this->Auth->allow(array('display')); 
    2626  } 
     27  
     28 public function isAuthorized()  
     29 {       
     30   if (isset( $this->params[Configure::read('Routing.admin')] )): 
     31       if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
     32         return true; 
     33       else: 
     34             return false; 
     35       endif;    
     36   endif; 
     37 
     38   return true; 
     39 } 
     40  
    2741    
    2842  public function calendar()