Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Prue committed Jun 23, 2017
2 parents d5b33de + 6ccaff5 commit fc133ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* [Thunks](/docs/recipes/thunks.md)
* [Epics](/docs/recipes/epics.md)
* [Routing](/docs/recipes/routing.md)
* [Roles](/docs/recipes/roles.md)
* [Populate](/docs/recipes/populate.md)
* [Upload](/docs/recipes/upload.md)
* [Redux Form](/docs/recipes/redux-form.md)
Expand Down
6 changes: 2 additions & 4 deletions docs/recipes/roles.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Roles (Access Management) Recipe

**Note:** This example is based on the Access Management chapter from this book: https://prescottprue.gitbooks.io/real-react-firebase/content/features/access-management.html

Control/management of access through setting and assigning user roles and permissions are an important part of most production applications.

Though there are many patterns, we are going to use the following terminology:
Expand All @@ -19,13 +17,13 @@ _Tip: you can import below JSON directly into Firebase. Alternatively you can po
```js
{
admin: {
name: 'admin', // will not be nessesary once profileParamsToPopulate supports keyProp
name: 'admin', // will not be necessary once profileParamsToPopulate supports keyProp
todos: true,
userManagement: true
},
user: {
todos: true,
name: 'user'// will not be nessesary once profileParamsToPopulate supports keyProp
name: 'user'// will not be necessary once profileParamsToPopulate supports keyProp
}
}
{
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@
"eslint-plugin-react": "^6.10.3",
"eslint-plugin-standard": "^2.2.0",
"gitbook-cli": "^2.3.0",
"gitbook-plugin-anchorjs": "^1.1.1",
"gitbook-plugin-edit-link": "^2.0.2",
"gitbook-plugin-github": "^2.0.0",
"gitbook-plugin-prism": "^2.2.0",
"gitbook-plugin-versions-select": "^0.1.1",
"istanbul": "^1.1.0-alpha.1",
"jsdom": "^9.12.0",
"mocha": "^3.2.0",
Expand Down

0 comments on commit fc133ca

Please sign in to comment.