Commit a67be9c
fix: revert to strict comparison in updateDocument, normalize tenant instead
The loose comparison in the update-detection block could miss type-only
changes, allowing writes to persist with only READ authorization checked
instead of UPDATE. Normalize the old document's $tenant value so both
sides match under strict comparison.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5fb39b6 commit a67be9c
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6055 | 6055 | | |
6056 | 6056 | | |
6057 | 6057 | | |
6058 | | - | |
| 6058 | + | |
| 6059 | + | |
| 6060 | + | |
6059 | 6061 | | |
6060 | 6062 | | |
6061 | 6063 | | |
| |||
6065 | 6067 | | |
6066 | 6068 | | |
6067 | 6069 | | |
6068 | | - | |
6069 | | - | |
6070 | | - | |
6071 | | - | |
6072 | | - | |
6073 | | - | |
6074 | | - | |
6075 | 6070 | | |
6076 | 6071 | | |
6077 | 6072 | | |
| |||
6169 | 6164 | | |
6170 | 6165 | | |
6171 | 6166 | | |
6172 | | - | |
6173 | | - | |
| 6167 | + | |
6174 | 6168 | | |
6175 | 6169 | | |
6176 | 6170 | | |
| |||
0 commit comments