Skip to content

Commit

Permalink
Add docs for getRoles()
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemclin committed Jul 15, 2015
1 parent f3bbf45 commit a41c731
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -219,10 +219,24 @@ Remove a role from the current user

Remove all roles from current user

#### `AclService.getRoles()`

Get all of the roles attached to the user

###### Returns

**array**

#### `AclService.hasRole(role)`

Check if the current user has role attached

###### Parameters

| Param | Type | Example | Details |
| ----- | ---- | ------- | ------- |
| `role` | string | `"admin"` | The role label |

###### Returns

**boolean**
Expand Down

0 comments on commit a41c731

Please sign in to comment.