Changeset 540 for trunk/app/controllers/images_controller.php
- Timestamp:
- 05/21/08 11:43:42 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/images_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/images_controller.php
r538 r540 23 23 } 24 24 25 public function isAuthorized()26 {27 if (isset( $this->params[Configure::read('Routing.admin')] )):28 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ): // admin and teachers29 return true;30 else:31 return false;32 endif;33 endif;34 35 return true;36 }37 38 25 /*** === ADMIN METHODS ***/ 39 26
