3 Commits

Author SHA1 Message Date
Jared Schoeny
02929fffd3 Merge pull request #128 from jschoeny/feat/curated-hacks
Some checks failed
Deploy Supabase Migrations to Production / migrate (push) Has been cancelled
Only show curated hacks on Discover and the homepage
2026-11-19 19:02:47 -07:00
Jared Schoeny
a214811230 Tighten the database security test fixtures
Have the archiver work on a hack they don't own, so only the archiver policies
apply, and assert a plain insert of verified on its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 10:01:02 -07:00
Jared Schoeny
a492910fe4 Protect creator verification and hack retention at the database
Direct API callers could set profiles.verified on themselves and hard-delete
hacks, bypassing approveHack and the admin-only soft delete. Writes to verified
now need the service role, and only the service role can delete hacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 09:55:47 -07:00