From 54cf4b6e02b7e33c5a6b21d8c719ffec5bd1448e Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Mon, 21 Mar 2016 22:13:12 -0400 Subject: [PATCH] Grant project access to teams through role parenting --- awx/main/models/projects.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/awx/main/models/projects.py b/awx/main/models/projects.py index fb08f6bcfd..4919c3e06a 100644 --- a/awx/main/models/projects.py +++ b/awx/main/models/projects.py @@ -219,7 +219,10 @@ class Project(UnifiedJobTemplate, ProjectOptions, ResourceMixin): admin_role = ImplicitRoleField( role_name='Project Administrator', role_description='May manage this project', - parent_role='organization.admin_role', + parent_role=[ + 'organization.admin_role', + 'teams.member_role', + ], permissions = {'all': True} ) auditor_role = ImplicitRoleField(