Property "CAccessRule.role" is not defined

Hi All

In the function accessRules() I have defined the following access rule

array('allow', // allow admin user to perform 'admin' 




however, when I execute my code I get an Property "CAccessRule.role" is not defined. CException.

I have my AuthManager configured (config/main.php and created the roles/operations)

Any suggestions how to fix this.

Note: administrator is a role and ‘administer’ an operation

I’ve also tried with only ‘administer’ or ‘administrator’ giving the same error!



Check the documentation… CAccessRule does not have "role", but "roles" -