Commit f7e1680
committed
fix(cms): enforce access control in generateThumbnail local API calls
Pass overrideAccess:false to the payload.create('images') and
payload.update('articles') calls so the thumbnail endpoint enforces each
collection's access control instead of bypassing it with the default
overrideAccess:true. Both call paths guarantee an authenticated user
(REST returns 401 without one, MCP resolves it from the API key).1 parent c7f3508 commit f7e1680
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
337 | 338 | | |
338 | 339 | | |
339 | 340 | | |
| |||
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
| 350 | + | |
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| |||
0 commit comments