Commit 9aa4206
fix: use raw tenant attribute to avoid type mismatch in update comparison
getTenant() casts numeric strings to int, but the no-change comparison
uses strict equality. This caused false shouldUpdate=true, triggering
authorization checks on documents with only read permissions.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b9727f2 commit 9aa4206
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6055 | 6055 | | |
6056 | 6056 | | |
6057 | 6057 | | |
6058 | | - | |
| 6058 | + | |
6059 | 6059 | | |
6060 | 6060 | | |
6061 | 6061 | | |
| |||
0 commit comments