feat(auth): add per-user task isolation #27
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
track:api
track:auto
track:core
track:deploy
track:infra
track:ui
v0.1.0
v0.1.1
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/delta!27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/multi-user-isolation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
All tasks, automations, and category colors were global — any authenticated user could see and modify any other user's data. The auth gate existed but there was no data isolation behind it. Server actions had zero auth checks.
Solution
Add
userIdFK totasks,automations, andcategoryColorstables with a migration that defaults existing rows to user 1. ThreaduserIdthrough all core functions, server actions (withrequireUser/requireOwnedTaskhelpers), API routes (ownership verification before mutations), and dashboard pages. Closes #24.