diff options
author | Alan Rominger <arominge@redhat.com> | 2023-12-14 16:42:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 16:42:26 +0100 |
commit | b14518c1e5614a817e4e89f6bbcd6439a272b322 (patch) | |
tree | 03c445a6975a346ff90b1f356bbf9aad5675315f /docs/rbac.md | |
parent | Send SIGKILL to rsyslog if hard cancellation is needed (diff) | |
download | awx-b14518c1e5614a817e4e89f6bbcd6439a272b322.tar.xz awx-b14518c1e5614a817e4e89f6bbcd6439a272b322.zip |
Simplify RBAC get_roles_on_resource method (#14710)
* Simplify RBAC get_roles_on_resource method
* Fix bug
* Fix query type bug
Diffstat (limited to 'docs/rbac.md')
-rw-r--r-- | docs/rbac.md | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/docs/rbac.md b/docs/rbac.md index 25591f6cf9..bd9fdf7abf 100644 --- a/docs/rbac.md +++ b/docs/rbac.md @@ -95,13 +95,6 @@ The `singleton` class method is a helper method on the `Role` model that helps i You may use the `user in some_role` syntax to check and see if the specified user is a member of the given role, **or** a member of any ancestor role. -#### `get_roles_on_resource(resource, accessor)` - -This is a static method (not bound to a class) that will efficiently return the names -of all roles that the `accessor` (a user or a team) has on a particular resource. -The resource is a python object for something like an organization, credential, or job template. -Return value is a list of strings like `["admin_role", "execute_role"]`. - ### Fields #### `ImplicitRoleField` |