Changeset 540 for trunk/app/controllers/messages_controller.php
- Timestamp:
- 05/21/08 11:43:42 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/messages_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/messages_controller.php
r538 r540 26 26 } 27 27 28 public function isAuthorized()29 {30 if (isset( $this->params[Configure::read('Routing.admin')] )):31 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ): // admin and teachers32 return true;33 else:34 return false;35 endif;36 endif;37 38 return true;39 }40 41 28 public function message($username) // show form to send message to teacher 42 29 {
