Show
Ignore:
Timestamp:
02/22/08 17:22:12 (11 months ago)
Author:
aarkerio
Message:

COntyroller to 1.2 cake version

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/pollrows_controller.php

    r73 r247  
    11<?php 
     2/** 
     3*  Chipotle Software TM 2002-2008 
     4*  GPLv3 manuel<arroba>mononeurona<punto>org 
     5**/ 
    26//File: /app/controllers/pollrows_controller.php 
    37 
     
    610  public $name          = 'Pollrows'; 
    711   
    8   public $helpers       = array('Form', 'Javascript', 'Ajax'); 
     12  public $helpers       = array('Ajax'); 
    913   
    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 }                                                          
    1125   
    12   public function vote()  
    13   { 
     26 public function vote()  
     27 { 
    1428    $this->layout = 'ajax'; 
    1529