title: Yii accessRules expression not working
body: <p>In my controller, I have </p>
  
  <pre><code>    /**
   * @return array action filters
   */
  public function filters()
  {
      return array(
          'accessControl', // perform access control for CRUD operations
      );
  }
  
  /**
   * Specifies the access control rules.
   * This method is used by the 'accessControl' filter.
   * @return array access control rules
   */
  public function accessRules()
  {
      return array(
          array('allow',  // allow all users to perform 'index' and 'view' actions
              'actions'=&gt;array('index','view'),
              'users'=&gt;array('*'),
          ),
          array('allow', // allow players to comment on games
              'actions'=&gt;array('createComment'),
              'roles'=&gt;array('createComment'),
          ),
    array('allow', // allow users to update and delete their own comments
      'actions'=&gt;array('deleteComment'),
      'expression'=&gt;'return $user-&gt;id==Game::model()-&gt;findByPk(Yii::app()-&gt;getRequest()-&gt;getQuery("id"))-&gt;author-&gt;id;',
    ),
          array('allow', // allow admin users to create, update, delete and manage games
              'actions'=&gt;array('admin','create','update','delete','deleteComment'),
      'roles'=&gt;array('admin'),
          ),
          array('deny',  // deny all users
              'users'=&gt;array('*'),
          ),
      );
  }
  </code></pre>
  
  <p>But for some reason, the expression on deleteComment always gives me a 403 error (not authorised). Even though I have tested that expression and get true. Even putting 'expression'=>'return true;' doesn't work. :( I'm completely confused... Any ideas?
  Thanks, Brad(:</p>