Commit d6f74f4b by muyiwaolurin

Update security-authorization.md

Typo
parent 279450d8
...@@ -306,8 +306,7 @@ For applications that require complex access control with dynamically updated au ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment