mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-02 21:01:49 -05:00
add org to permission team role
related to #3326 * Reduce confusion when 2 teams with the same name, belonging to diff orgs, are given permission to the same resource. The confusion is eliminated by showing the org that a team role belongs to in the tooltip.
This commit is contained in:
@@ -1620,7 +1620,8 @@ class ResourceAccessListElementSerializer(UserSerializer):
|
||||
'name': role.name,
|
||||
'description': role.description,
|
||||
'team_id': team_role.object_id,
|
||||
'team_name': team_role.content_object.name
|
||||
'team_name': team_role.content_object.name,
|
||||
'team_organization_name': team_role.content_object.organization.name,
|
||||
}
|
||||
if role.content_type is not None:
|
||||
role_dict['resource_name'] = role.content_object.name
|
||||
|
||||
Reference in New Issue
Block a user