Commit graph

2 commits

Author SHA1 Message Date
Maaxxs
63dcd23977 Add remove-image button and actually delete orphaned upload files
Phase 1 of the dashboard roadmap. ImageUploadField now has a clear
button, and every controller with an image/cover_image column deletes
the old file from hifi/api/uploads/ when it's replaced or the owning
record is deleted (including cascade cleanup for gallery brand/project
deletes) - previously no controller ever unlinked a physical file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-09 01:32:40 +02:00
Maaxxs
76bba33746 Protect the first-created admin account from being demoted or deleted
Whoever has the lowest admin_users.id is treated as the root account:
its Super-Admin status can no longer be revoked and the account itself
can't be deleted, regardless of how many other Super-Admins exist. UI
disables the checkbox/delete button for that user with an explanation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-29 22:25:31 +02:00
Renamed from hifi/assets/index-Ds-1nrOk.js (Browse further)