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