Changeset 538 for trunk/app/controllers/events_controller.php
- Timestamp:
- 05/21/08 01:02:56 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/events_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/events_controller.php
r510 r538 25 25 $this->Auth->allow(array('display')); 26 26 } 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 27 41 28 42 public function calendar()
