Changeset 540 for trunk/app/controllers/groups_controller.php
- Timestamp:
- 05/21/08 11:43:42 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/groups_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/groups_controller.php
r538 r540 21 21 } 22 22 23 public function isAuthorized()24 {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 teachers27 return true;28 else:29 return false;30 endif;31 endif;32 33 return true;34 }35 36 23 /** === ADMIN METHODS === **/ 37 24 public function admin_listing()
