Changeset 538 for trunk/app/controllers/galleries_controller.php
- Timestamp:
- 05/21/08 01:02:56 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/galleries_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/galleries_controller.php
r510 r538 25 25 public function isAuthorized() 26 26 { 27 if (isset( $this->params[Configure::read('Routing.admin')] )) 28 { 29 if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ) // admin and teachers 30 { 31 return true; 32 } 33 } 34 return false; // go away !! 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 else: 31 return false; 32 endif; 33 endif; 34 35 return true; 35 36 } 36 37 38 public function index($id = null) 39 { 37 38 public function index($id = null) 39 { 40 40 $this->pageTitle = 'View Active Users'; 41 41 $this->set('data', $this->User->findAll()); 42 42 $this->set('color', 'blue'); 43 }43 } 44 44 45 public function listview()46 {45 public function listview() 46 { 47 47 $this->layout = 'popup'; 48 48
