Commit Graph

41 Commits

Author SHA1 Message Date
dd802aca37 Block deactivated and suspended learners from all auth paths.
Enforce account status on email, phone OTP, social login, token refresh, and authenticated learner requests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-21 03:03:39 -07:00
6b02a5a1fc Ensure OPEN_LEARNER bypasses subscription and sequential content locks.
Harden LMS and exam-prep gates so only STUDENT is enforced, and return FREE effective_access_tier for OPEN_LEARNER so clients do not show paywall locks.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 02:38:00 -07:00
f457589f4a feat: auto-resolve MinIO file URLs in API responses
Presign minio:// references on outbound /api/v1 JSON so clients get usable URLs from resource GETs without calling the refresh endpoint.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-03 06:37:10 -07:00
bfa96b7372 feat: let OPEN_LEARNER bypass subscription gates on LMS and exam-prep routes
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-27 01:41:40 -07:00
208c653e02 feat: attach exam prep practices to catalog courses and units
Introduce exam_prep.practice_parents, migrate lesson links, and add create/list APIs with progress rollups, sequential gating, and RBAC permissions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 04:18:25 -07:00
8409f69d56 feat: return premium catalog content on GET for client-side lock UI
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-11 01:14:04 -07:00
4f873fe9de chore: temporarily disable exam-prep subscription enforcement
Add ExamPrepSubscriptionGateDisabled so learners can access exam-prep content without an IELTS or Duolingo plan. LMS subscription gating is unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-10 04:44:18 -07:00
c9a4bc1306 free/premium feature 2026-06-10 04:23:47 -07:00
be7946955d fix: show exam-prep catalog courses to learners when subscription gate is disabled
Align catalog list filtering with middleware so student/open-learner tokens return courses instead of an empty list while category subscription enforcement is bypassed.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 00:51:15 -07:00
8eaac9206e subscription enforced reversed 2026-05-27 11:40:24 -07:00
2e1f9432f6 subscription enforced 2026-05-27 09:56:23 -07:00
79fb95ce36 Add category-based subscription controls for LMS and exam prep.
Introduce plan and content categories across programs and exam-prep catalog roots, wire category-aware checkout and access checks, and keep learner gating temporarily bypassed until data migration is ready.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 06:20:49 -07:00
7e61e34292 Add OPEN_LEARNER role without LMS sequential gating.
Migration 000061 inserts the RBAC role and demo user (openlearner@yimaru.com). STUDENT keeps sequential ApplyAccess and practice ordering; OPEN_LEARNER shares learner permissions and customer flows. Document the role in Swagger and point initial seed SQL at the migration for the demo account.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-19 10:26:25 -07:00
73370633ce temporarily disabled subscription check 2026-05-06 05:10:36 -07:00
10954d88b0 subscription management fix + duolingo hierarchy implementation 2026-05-04 10:44:18 -07:00
809ab90d30 bulk notification fix + custom role and permission feature implementation + activity log and user list filters 2026-03-04 09:10:28 -08:00
Kerod-Fresenbet-Gebremedhin2660
87e57ca548 fix: reading headers in middleware modified to be case insensitive 2026-01-12 10:00:11 +03:00
Kerod-Fresenbet-Gebremedhin2660
1846f121bf test logs 2026-01-12 09:47:41 +03:00
d94774c138 schema adjustment and profile management fixes 2025-12-31 07:53:59 -08:00
47d70b029f afro SMS and partial ArifPay Payment Gateway integrations 2025-12-18 18:06:26 +03:00
5e9046eb76 user and auth service refactoring, notification service SQL + repository adjustment 2025-12-16 18:05:57 +03:00
c00110a503 feat: Enhance league, odds, events and bets functionality
- Updated league handling to ensure valid page size checks and improved error handling for sport ID parsing.
- Introduced new endpoint to update global league settings with comprehensive validation and error logging.
- Refactored odds settings management, including saving, removing, and updating odds settings with enhanced validation.
- Added tenant slug retrieval by token, ensuring proper user and company validation.
- Improved middleware to check for active company status and adjusted route permissions for various endpoints.
- Added SQL script to fix auto-increment desynchronization across multiple tables.
2025-10-05 23:45:31 +03:00
910d592bef fixes while integrating 2025-08-31 13:30:26 +03:00
6d74cb8c28 feat: refactoring entire system to be multi-tenant 2025-08-22 12:54:48 +03:00
ae56d253c2 merge fixes 2025-07-13 03:59:43 +03:00
c83130394b fix: version on route, better logs, error display, cleaning up code 2025-07-13 01:23:08 +03:00
1557a3141b fix: transfer not showing online bet issue 2025-06-16 16:24:42 +03:00
c374fd7a96 feat: removing odds when event is removed 2025-06-12 19:09:19 +03:00
62f7dd24eb fix: integrating issues 2025-06-07 20:54:49 +03:00
542400bcaf feat: add the bet winning to user wallet 2025-05-30 19:38:59 +03:00
KidusAlemayehu
4a2ae14a64 add notification retrieval endpoint; refactor middleware for company role validation 2025-05-13 22:43:51 +03:00
KidusAlemayehu
6177b8cf92 refactor notification service to use Gorilla WebSocket; implement WebSocket authentication middleware and notification hub 2025-05-13 16:44:31 +03:00
ae571d51a6 fixed company-id, admin-id optional parameters for creating company and branch 2025-04-30 18:43:46 +03:00
208a2d74be integration fixes 2025-04-26 14:48:45 +03:00
8c536a6d2f company management 2025-04-23 03:44:17 +03:00
06cd464672 Merge branch 'wallet' 2025-04-10 16:06:24 +03:00
2163053d97 some changes 2025-04-10 16:06:05 +03:00
lafetz
857c5c0696 add manager and cashier 2025-04-10 14:59:31 +03:00
c9df0b3303 transfer and branch service implementation 2025-04-08 23:18:53 +03:00
lafetz
ca7aa9d67c fix registration and password reset 2025-03-31 00:25:50 +03:00
lafetz
c8b215cc43 impl auth http layer 2025-03-29 06:25:19 +03:00