Changeset 526 for trunk/app/controllers/discussions_controller.php
- Timestamp:
- 05/19/08 22:55:10 (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
r510 r526 30 30 public function isAuthorized() 31 31 { 32 if (isset( $this->params[Configure::read('Routing.admin')] )) 33 { 34 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ) // admin and teachers 35 { 36 return true; 37 } 38 } 39 return false; // go away !! 32 if (isset( $this->params[Configure::read('Routing.admin')] )): 33 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ): // admin and teachers 34 return true; 35 endif; 36 endif; 37 return false; // go away !! 40 38 } 41 39
