Changeset 538 for trunk/app/controllers/ecourses_controller.php
- Timestamp:
- 05/21/08 01:02:56 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/ecourses_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/ecourses_controller.php
r526 r538 21 21 $this->Auth->allow(array('display')); 22 22 } 23 23 24 public function isAuthorized() 24 25 { 25 26 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 endif; 27 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ): // admin and teachers 28 return true; 29 else: 30 return false; 31 endif; 29 32 endif; 30 return false; // go away !! 33 34 return true; 31 35 } 36 32 37 33 38 /****
