Changeset 531
- Timestamp:
- 05/20/08 13:58:49 (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
r438 r531 17 17 18 18 public $components = array('Adds'); 19 19 20 public function beforeFilter() 21 { 22 parent::beforeFilter(); 23 } 24 20 25 public function isAuthorized() 21 26 { 22 if (isset( $this->params[Configure::read('Routing.admin')] )) 23 { 24 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ) // admin and teachers 25 { 26 return true; 27 } 28 } 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 teachers 29 return true; 30 endif; 31 endif; 29 32 return false; // go away !! 30 33 }
