Spaces:
Paused
Paused
dushyantsingh0 commited on
Commit ·
90cb8ef
1
Parent(s): 3be9a96
backend stabilization
Browse files- api/v1/tickets.py +1 -1
api/v1/tickets.py
CHANGED
|
@@ -693,7 +693,7 @@ async def list_tickets_paginated(
|
|
| 693 |
if not is_staff:
|
| 694 |
# Customer Portal Hardening: Ensure only customer-created tickets are surfaced
|
| 695 |
base_stmt = base_stmt.join(User, Ticket.created_by == User.id).where(
|
| 696 |
-
User.
|
| 697 |
)
|
| 698 |
|
| 699 |
# 3. Filters
|
|
|
|
| 693 |
if not is_staff:
|
| 694 |
# Customer Portal Hardening: Ensure only customer-created tickets are surfaced
|
| 695 |
base_stmt = base_stmt.join(User, Ticket.created_by == User.id).where(
|
| 696 |
+
User._legacy_role.ilike('customer%')
|
| 697 |
)
|
| 698 |
|
| 699 |
# 3. Filters
|