Update security-authorization.md

Typo
This commit is contained in:
muyiwaolurin
2014-05-21 11:08:40 -04:00
parent 279450d804
commit d6f74f4b2b

View File

@@ -306,8 +306,7 @@ For applications that require complex access control with dynamically updated au
As aforementioned, rules add additional constraint to roles and permissions. A rule is a class extending As aforementioned, rules add additional constraint to roles and permissions. A rule is a class extending
from [[yii\rbac\Rule]]. It must implement the [[yii\rbac\Rule::execute()|execute()]] method. In the hierarchy we've from [[yii\rbac\Rule]]. It must implement the [[yii\rbac\Rule::execute()|execute()]] method. In the hierarchy we've
created previously author cannot edit his own post. Let's fix it. First we need a rule to verify that the user is post created previously author cannot edit his own post. Let's fix it. First we need a rule to verify that the user is the post author:
author:
```php ```php
namespace app\rbac; namespace app\rbac;