summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAkita Noek <akitanoek@gmail.com>2016-02-15 19:36:31 +0100
committerAkita Noek <akitanoek@gmail.com>2016-02-15 19:36:31 +0100
commit380ba8a41d7cb467c832229cf4e7f38a6f7c4170 (patch)
tree34c1215ed434207d82d6ca29fd10d6cc907e1c04 /docs
parentUpdate rbac.md (diff)
parentdoc: ImplicitRoleField after the elimination of resource_field (diff)
downloadawx-380ba8a41d7cb467c832229cf4e7f38a6f7c4170.tar.xz
awx-380ba8a41d7cb467c832229cf4e7f38a6f7c4170.zip
Merge pull request #962 from anoek/rbac
"Completion" of RBAC migrations; resource_field elimination
Diffstat (limited to 'docs')
-rw-r--r--docs/rbac.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/rbac.md b/docs/rbac.md
index 32ed53ad0f..986fd904ea 100644
--- a/docs/rbac.md
+++ b/docs/rbac.md
@@ -103,7 +103,16 @@ The `singleton` static method is a helper method on the `Role` model that helps
`role_name` is the display name of the role. This is useful when generating reports or looking the results of queries.
-`permissions` is a dictionary of set permissions that a user with this role will gain to your `Resource`. A permission defaults to `False` if not explicitly provided. Below is a list of available permissions. The special permission `all` is a shortcut for generating a dict with all of the explicit permissions listed below set to `True`.
+`permissions` can be used when the model that contains the
+`ImplicitRoleField` utilizs the `ResourceMixin`. When present, a
+`RolePermission` entry will be automatically created to grant the specified
+permissions on the resource to the role defined by the `ImplicitRoleField`.
+
+This field should be specified as a dictionary of permissions you wish to
+automatically grant. Below is a list of available permissions. The special
+permission `all` is a shortcut for generating a dict with all of the explicit
+permissions listed below set to `True`. Note that permissions default to
+`False` if not explicitly provided.
```python
# Available Permissions