From dd39dc1b23c47d7202a5d1dd0b3be62e1bb48e20 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 24 Jun 2019 23:17:24 +0000 Subject: [PATCH] Correct team iterator lists in worklist creation The team_get() method needs to iterate over our list of team owners and team users, so pass in elements from the correct list names. Change-Id: I7b18378577e818989fc89118d6b1d947cc7a5682 --- storyboard/api/v1/worklists.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storyboard/api/v1/worklists.py b/storyboard/api/v1/worklists.py index 2024cd4c..34b7e304 100644 --- a/storyboard/api/v1/worklists.py +++ b/storyboard/api/v1/worklists.py @@ -798,11 +798,11 @@ class WorklistsController(rest.RestController): event_owners = [{id: users_api.user_get(id).full_name} for id in owners] event_team_owners = [{id: teams_api.team_get(id).name} - for id in owners] + for id in team_owners] event_users = [{id: users_api.user_get(id).full_name} for id in users] event_team_users = [{id: teams_api.team_get(id).name} - for id in users] + for id in team_users] events_api.worklist_permission_created_event(created_worklist.id, user_id, edit.id,