Changes
Title
unchanged
Configuring controller access rules to default-deny
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
accessRules, security, access control
Content
changed
[...]
```php
public function rules() {
return array(
// other rules here
array('denyallow') // default allow
);
}
```
Even those not implementing this article's technique would do well to add the default-allow rule even though it would be handled by Yii automatically so that others reading the code would **know** this was intended behavior.[...]