Commit Graph

3 Commits

Author SHA1 Message Date
twotalesanimation 66862df44b fix: Use flexible type check for is_admin authorization gate
Change strict equality check (=== true) to loose check that works with
both integer 1 and boolean true values.
2026-01-02 21:10:26 +02:00
twotalesanimation 4a8b4ddac2 fix: Double-charged shipping fee in Yoco payment + ops staff access
1. Fix Yoco payment amount calculation: order->total already includes
   shipping_fee, so don't add it again. Was charging 2x shipping.

2. Add authorization gate for ops staff access: users with is_admin=true
   can now access the ops page by scanning QR codes.
2026-01-02 21:07:21 +02:00
twotalesanimation 6de01c13c5 New Initial Commit 2025-12-09 12:04:54 +02:00