Changeset 538 for trunk/app/controllers/glossaries_controller.php
- Timestamp:
- 05/21/08 01:02:56 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/glossaries_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/glossaries_controller.php
r526 r538 22 22 parent::beforeFilter(); 23 23 } 24 24 25 25 26 public function isAuthorized() 26 27 { 27 28 if (isset( $this->params[Configure::read('Routing.admin')] )): 28 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ): // admin and teachers29 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ): // admin and teachers 29 30 return true; 30 endif; 31 endif; 32 return false; // go away !! 31 else: 32 return false; 33 endif; 34 endif; 35 36 return true; 33 37 } 34 38 35 39 public function display($username) 36 40 {
