CAccessControlFilter expression not array

Currently all rules(users, roles, …) are treated as arrays except exp​ression rule. This is in conflict with setRules function that expects rule to be an array.

So I propose to use exp​ression as an array in code and in function isExp​ressionMatched:

protected function isExp​ressionMatched($user)



    return true;

  foreach($this->exp​ression as $rule)

    if(@eval('return '.$rule.';'))

      return true;


This has been fixed in SVN.