Changeset 538 for trunk/app/controllers/entries_controller.php
- Timestamp:
- 05/21/08 01:02:56 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/entries_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/entries_controller.php
r528 r538 23 23 parent::beforeFilter(); 24 24 $this->Auth->allow(array('rss', 'search')); 25 } 25 } 26 26 27 27 public function isAuthorized() 28 28 { 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 teachers29 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 31 31 return true; 32 endif; 33 endif; 34 return false; // go away !! 32 else: 33 return false; 34 endif; 35 endif; 36 37 return true; 35 38 } 36 39
