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