@@ -336,7 +336,7 @@ def case_update_flow(
336336 # we get the case
337337 case = get (db_session = db_session , case_id = case_id )
338338
339- if reporter_email and case and reporter_email != case .reporter .email :
339+ if reporter_email and case and reporter_email != case .reporter .individual . email :
340340 # we run the case assign role flow for the reporter if it changed
341341 case_assign_role_flow (
342342 case_id = case .id ,
@@ -345,7 +345,7 @@ def case_update_flow(
345345 db_session = db_session ,
346346 )
347347
348- if assignee_email and case and assignee_email != case .assignee .email :
348+ if assignee_email and case and assignee_email != case .assignee .individual . email :
349349 # we run the case assign role flow for the assignee if it changed
350350 case_assign_role_flow (
351351 case_id = case .id ,
@@ -374,15 +374,15 @@ def case_update_flow(
374374
375375 if case .tactical_group :
376376 # we update the tactical group
377- if reporter_email and reporter_email != case .reporter .email :
377+ if reporter_email and reporter_email != case .reporter .individual . email :
378378 group_flows .update_group (
379379 subject = case ,
380380 group = case .tactical_group ,
381381 group_action = GroupAction .add_member ,
382382 group_member = reporter_email ,
383383 db_session = db_session ,
384384 )
385- if assignee_email and assignee_email != case .assignee .email :
385+ if assignee_email and assignee_email != case .assignee .individual . email :
386386 group_flows .update_group (
387387 subject = case ,
388388 group = case .tactical_group ,
0 commit comments