Skip to content

Commit

Permalink
Merge pull request #8 from Maks3w/patch-1
Browse files Browse the repository at this point in the history
Format example so it looks similar to RBAC
  • Loading branch information
froschdesign committed Apr 30, 2021
2 parents b349ea5 + af622a5 commit c6f8c5d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/book/v1/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,27 @@ return [
// ...
'mezzio-authorization-acl' => [
'roles' => [
'editor' => [],
'administrator' => [],
'editor' => ['administrator'],
'contributor' => ['editor'],
'administrator' => ['contributor'],
],
'resources' => [
'admin.dashboard',
'admin.posts',
'admin.publish',
'admin.settings'
'admin.settings',
],
'allow' => [
'administrator' => ['admin.settings'],
'contributor' => [
'admin.dashboard',
'admin.posts',
],
'editor' => [
'admin.publish'
]
],
'administrator' => [
'admin.settings',
],
]
]
];
Expand Down

0 comments on commit c6f8c5d

Please sign in to comment.