summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWayne Witzel III <wayne@riotousliving.com>2016-06-27 17:28:38 +0200
committerGitHub <noreply@github.com>2016-06-27 17:28:38 +0200
commitf0418d88416b048fec11020536279202efdc1696 (patch)
tree81cf9d7b910623fb6774d44634fab606659f3a95 /tools
parentMerge pull request #2615 from wenottingham/nuke-a-thing (diff)
parentenforce read access for team/child roles (diff)
downloadawx-f0418d88416b048fec11020536279202efdc1696.tar.xz
awx-f0418d88416b048fec11020536279202efdc1696.zip
Merge pull request #2634 from wwitzel3/issue-2560
Disallow non-admin of a user to add a user to Roles
Diffstat (limited to 'tools')
-rwxr-xr-xtools/data_generators/rbac_dummy_data_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/data_generators/rbac_dummy_data_generator.py b/tools/data_generators/rbac_dummy_data_generator.py
index cf26cb3da3..ad90dc74a9 100755
--- a/tools/data_generators/rbac_dummy_data_generator.py
+++ b/tools/data_generators/rbac_dummy_data_generator.py
@@ -216,7 +216,7 @@ try:
sys.stdout.flush()
credential_id = ids['credential']
credential = Credential.objects.create(name='%s Credential %d User %d' % (prefix, credential_id, user_idx))
- credential.owner_role.members.add(user)
+ credential.admin_role.members.add(user)
credentials.append(credential)
user_idx += 1
print('')
@@ -232,7 +232,7 @@ try:
sys.stdout.flush()
credential_id = ids['credential']
credential = Credential.objects.create(name='%s Credential %d team %d' % (prefix, credential_id, team_idx))
- credential.owner_role.parents.add(team.member_role)
+ credential.admin_role.parents.add(team.member_role)
credentials.append(credential)
team_idx += 1
print('')