Changeset 538 for trunk/app/controllers/discussions_controller.php
- Timestamp:
- 05/21/08 01:02:56 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/discussions_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/discussions_controller.php
r537 r538 28 28 endif; 29 29 } 30 30 31 31 public function isAuthorized() 32 32 { 33 33 if (isset( $this->params[Configure::read('Routing.admin')] )): 34 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ): // admin and teachers 35 return true; 36 endif; 34 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ): // admin and teachers 35 return true; 36 else: 37 return false; 38 endif; 37 39 endif; 38 return false; // go away !! 40 41 return true; 39 42 } 40 43 41 44 public function add() 42 45 {
