Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/documented-acl-example' into develop
Browse files Browse the repository at this point in the history
Forward port #24
  • Loading branch information
weierophinney committed Oct 22, 2019
2 parents 7800ce0 + 44fc57f commit b44903c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/book/v1/intro.md
Expand Up @@ -31,9 +31,9 @@ return [
// ...
'zend-expressive-authorization-acl' => [
'roles' => [
'administrator' => [],
'editor' => ['administrator'],
'editor' => [],
'contributor' => ['editor'],
'administrator' => ['contributor'],
],
'resources' => [
'admin.dashboard',
Expand All @@ -59,11 +59,10 @@ return [
> so that you can compare and contrast the two systems.
The above configuration defines three roles for a blog web site:
*administrator*, *editor*, and *contributor*. The *administrator* has the
highest level of authorization (no parent). A *contributor* has the permission
to create a post and manage the dashboard; its parent role is the
*administrator*. Finally, an *editor* can only create or update a post; its
parent role is the *editor*.
an *editor*, a *contributor*, and an *administrator*. The *contributor* role has
the *editor* role as a child role, meaning it inherits its capabilities. The
*administrator* role has the *contributor* role as a child, inheriting both its
direct capabilities, as well as any that role has inherited.

> In ACL systems, parent roles inherit the permissions of their children.
Expand Down

0 comments on commit b44903c

Please sign in to comment.