mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 23:37:39 -02:30
Update rbac.md
Remove resource_field
This commit is contained in:
@@ -132,7 +132,6 @@ After exploring the _Overview_ the usage of the RBAC implementation in your code
|
|||||||
# declare your new role
|
# declare your new role
|
||||||
readonly_role = ImplicitRoleField(
|
readonly_role = ImplicitRoleField(
|
||||||
role_name="readonly",
|
role_name="readonly",
|
||||||
resource_field="resource",
|
|
||||||
permissions={'read':True},
|
permissions={'read':True},
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
@@ -151,5 +150,3 @@ Now that your model is a `Resource` and has a `Role` defined, you can begin to a
|
|||||||
>>> document.accessible_by(user, {'read':True, 'write':True})
|
>>> document.accessible_by(user, {'read':True, 'write':True})
|
||||||
False # my role does not have write permission
|
False # my role does not have write permission
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user