favoritter/internal/handler
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
..
api feat: add notes field to favorites and enhance OG meta tags 2026-04-04 00:40:08 +02:00
admin.go feat: add admin role management and user deletion 2026-04-07 10:18:00 +02:00
auth.go feat: add profiles, public views, settings, and code quality fixes 2026-03-29 16:01:41 +02:00
fave.go feat: add edit/delete buttons to list views and inline privacy toggle 2026-04-07 10:17:46 +02:00
feed.go feat: add notes field to favorites and enhance OG meta tags 2026-04-04 00:40:08 +02:00
handler.go feat: add edit/delete buttons to list views and inline privacy toggle 2026-04-07 10:17:46 +02:00
handler_test.go feat: add notes field to favorites and enhance OG meta tags 2026-04-04 00:40:08 +02:00
import_export.go feat: add notes field to favorites and enhance OG meta tags 2026-04-04 00:40:08 +02:00
profile.go fix: address code review findings for Phase 7-8 2026-03-29 16:39:10 +02:00
pwa.go feat: add PWA support with Android share intent 2026-04-07 10:06:18 +02:00
web_test.go feat: add edit/delete buttons to list views and inline privacy toggle 2026-04-07 10:17:46 +02:00