Changeset 247 for trunk/app/controllers/pollrows_controller.php
- Timestamp:
- 02/22/08 17:22:12 (11 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/pollrows_controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/pollrows_controller.php
r73 r247 1 1 <?php 2 /** 3 * Chipotle Software TM 2002-2008 4 * GPLv3 manuel<arroba>mononeurona<punto>org 5 **/ 2 6 //File: /app/controllers/pollrows_controller.php 3 7 … … 6 10 public $name = 'Pollrows'; 7 11 8 public $helpers = array(' Form', 'Javascript', 'Ajax');12 public $helpers = array('Ajax'); 9 13 10 public $components = array('Security'); 14 public function isAuthorized() 15 { 16 if (isset($this->params[Configure::read('Routing.admin')])) 17 { 18 if ($this->Auth->user('group_id') != 1) 19 { 20 return false; 21 } 22 } 23 return true; 24 } 11 25 12 public function vote()13 {26 public function vote() 27 { 14 28 $this->layout = 'ajax'; 15 29
