mirror of
https://github.com/btouchard/ackify-ce.git
synced 2026-02-07 14:29:02 -06:00
MagicLinkRepository was bypassing RLS by using r.db directly instead of dbctx.GetQuerier(ctx, r.db). This meant queries ran outside the transaction with app.tenant_id set, causing RLS policies to not apply. All methods now use dbctx.GetQuerier to properly participate in the RLS transaction context.