1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

include new org roles in permissions fix

This commit is contained in:
AlanCoding 2018-04-06 12:03:43 -04:00
parent a344ceda0e
commit 12979260bb
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -541,7 +541,12 @@ class UserAccess(BaseAccess):
def user_membership_roles(self, u):
return Role.objects.filter(
content_type=ContentType.objects.get_for_model(Organization),
role_field__in=['admin_role', 'member_role'],
role_field__in=[
'admin_role', 'member_role',
'execute_role', 'project_admin_role', 'inventory_admin_role',
'credential_admin_role', 'workflow_admin_role',
'notification_admin_role'
],
members=u
)