Skip to content

Commit

Permalink
Updated/fixed readme.md docs
Browse files Browse the repository at this point in the history
  • Loading branch information
smuuf authored and dg committed Nov 5, 2014
1 parent 77a2d92 commit 72a0f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ $acl->addRole('administrator', 'registered'); // and administrator inherits from

Trivial, isn't it? This ensures all the properties of the parents will be inheritted by their children.

Do note the method `getRoleParents()`, which returns an array of all parent roles, and the method `roleIntheritsFrom()`, which checks whether a role extends another. Their usage:
Do note the method `getRoleParents()`, which returns an array of all direct parent roles, and the method `roleIntheritsFrom()`, which checks whether a role extends another. Their usage:

```php
$acl->roleInheritsFrom('administrator', 'guest'); // TRUE
$acl->getRoleParents('administrator'); // array('guest', 'registered')
$acl->getRoleParents('administrator'); // array('registered') - only direct parents
```

Now is the right time to define the set of resources that the users may acccess:
Expand Down

0 comments on commit 72a0f78

Please sign in to comment.