Changeset 540 for trunk/app/controllers/recovers_controller.php
- Timestamp:
- 05/21/08 11:43:42 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/recovers_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/recovers_controller.php
r538 r540 19 19 $this->Auth->allow(array('check', 'newpwd', 'recover')); 20 20 } 21 22 public function isAuthorized()23 {24 if (isset( $this->params[Configure::read('Routing.admin')] )):25 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ): // admin and teachers26 return true;27 else:28 return false;29 endif;30 endif;31 32 return true;33 }34 35 21 36 22 public function recover()
