@@ -336,7 +336,7 @@ def case_update_flow(
336
336
# we get the case
337
337
case = get (db_session = db_session , case_id = case_id )
338
338
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 :
340
340
# we run the case assign role flow for the reporter if it changed
341
341
case_assign_role_flow (
342
342
case_id = case .id ,
@@ -345,7 +345,7 @@ def case_update_flow(
345
345
db_session = db_session ,
346
346
)
347
347
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 :
349
349
# we run the case assign role flow for the assignee if it changed
350
350
case_assign_role_flow (
351
351
case_id = case .id ,
@@ -374,15 +374,15 @@ def case_update_flow(
374
374
375
375
if case .tactical_group :
376
376
# 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 :
378
378
group_flows .update_group (
379
379
subject = case ,
380
380
group = case .tactical_group ,
381
381
group_action = GroupAction .add_member ,
382
382
group_member = reporter_email ,
383
383
db_session = db_session ,
384
384
)
385
- if assignee_email and assignee_email != case .assignee .email :
385
+ if assignee_email and assignee_email != case .assignee .individual . email :
386
386
group_flows .update_group (
387
387
subject = case ,
388
388
group = case .tactical_group ,
0 commit comments