Without an ownership check, viewing someone else's project (admin inspection, browsing public projects) caused the auto-save hook to PUT the project on every store change. The backend correctly rejects non-owner updates with 403, but the frontend surfaced these as "save fail" to the user — misleading and noisy in logs. The hook now stays idle unless the authenticated user matches currentProject.ownerUsername. Manual saves through SaveProjectModal are unaffected. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| useAutoSaveProject.ts | ||
| useWebcamFrames.ts | ||