This commit is contained in:
Your Name
2026-09-09 15:47:48 +08:00
parent bd5d5c5f08
commit cb10e75ead
98 changed files with 7031 additions and 804 deletions
@@ -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'
);