更新
This commit is contained in:
@@ -216,11 +216,11 @@ diagnosisWorkspaceAuthExpect(
|
||||
diagnosisWorkspaceAuthExpect(
|
||||
str_contains($imChatSyncControllerMethod, 'DiagnosisLogic::canViewReadonlyDiagnosis(')
|
||||
&& strpos($imChatSyncControllerMethod, 'DiagnosisLogic::canViewReadonlyDiagnosis(')
|
||||
< strpos($imChatSyncControllerMethod, 'register_shutdown_function('),
|
||||
'IM archive sync authorizes the diagnosis before queuing background work'
|
||||
< strpos($imChatSyncControllerMethod, 'DiagnosisLogic::syncImChatArchiveStep('),
|
||||
'IM archive sync authorizes the diagnosis before syncing any cloud page'
|
||||
);
|
||||
diagnosisWorkspaceAuthExpect(
|
||||
substr_count($imChatLogicMethod, 'attachDiagnosisIdToImMessages(') >= 3
|
||||
str_contains($imChatLogicMethod, 'attachDiagnosisIdToImMessages(')
|
||||
&& str_contains($imChatOwnerMethod, "\$row['diagnosis_id'] = \$diagnosisId"),
|
||||
'every IM response row declares its parent diagnosis for client-side ownership checks'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user