favoritter/internal/store
Ole-Morten Duesund 254573316a feat: add admin role management and user deletion
Admins can now change user roles and permanently delete user accounts.

- New SetRole store method with validation (user/admin only)
- New Delete store method — cascades via foreign keys to sessions,
  faves, and fave_tags
- handleAdminSetRole: change role with self-modification prevention
- handleAdminDeleteUser: permanent deletion with image cleanup from
  disk before cascade delete, self-deletion prevention
- admin_users.html: role dropdown with save button per user row,
  delete button with hx-confirm for safety
- Routes: POST /admin/users/{id}/role, POST /admin/users/{id}/delete

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 10:18:00 +02:00
..
fave.go feat: add edit/delete buttons to list views and inline privacy toggle 2026-04-07 10:17:46 +02:00
fave_test.go feat: add edit/delete buttons to list views and inline privacy toggle 2026-04-07 10:17:46 +02:00
session.go feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
session_test.go test: add comprehensive test suite (44 tests across 3 packages) 2026-03-29 16:47:32 +02:00
settings.go feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
settings_test.go test: add comprehensive test suite (44 → 169 tests) and v1.1 plan 2026-04-04 00:18:01 +02:00
signup_request.go fix: address security and quality issues from code review 2026-03-29 16:19:44 +02:00
signup_request_test.go test: add comprehensive test suite (44 tests across 3 packages) 2026-03-29 16:47:32 +02:00
tag.go feat: implement Phase 1 (auth) and Phase 2 (faves CRUD) foundation 2026-03-29 15:55:22 +02:00
tag_test.go feat: add notes field to favorites and enhance OG meta tags 2026-04-04 00:40:08 +02:00
user.go feat: add admin role management and user deletion 2026-04-07 10:18:00 +02:00
user_test.go feat: add admin role management and user deletion 2026-04-07 10:18:00 +02:00