Merge branch 'role' into dev

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	backend/app/services/shipping_notice/rpa_worker_heartbeat_alert.py
#	backend/app/services/voucher_check/schedule_seed.py
#	docs/features/shipping-notice/technical.md
#	docs/tec.md
#	frontend/src/features/user/views/UserProfilePage.vue
This commit is contained in:
sophie committed 2026-09-22 18:25:45 +08:00
commit bb7e0977b8
94 files changed
+4493 -388

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ def _serialize_agent_row(agent: Agent, *, visible_agent_ids: set[int] | None = N
def _list_active_agents_for_user(user: User) -> list[Agent]:
"""返回用户可见的完整 Agent ORM 行(含 Registry 结构化列)。"""
if user.role == 'admin':
if user.is_platform_admin():
return (
db.session.query(Agent)
.filter(Agent.is_active.is_(True))