fix: 源店计划启用即返回 show_entry,与是否有资产无关
EOF Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -926,9 +926,9 @@ def gate_for_user(*, club_id: str, user_uid: str, roles: Optional[List[str]] = N
|
||||
role_hit = any(r in force_roles for r in roles)
|
||||
has_assets = user_has_migratable_assets(plan, user_uid)
|
||||
# 关后台「启用」→ find_active 找不到计划 → 上面已全 false,前端零感知
|
||||
# 开「启用」:源店可展示入口;「强制拦截」只控制是否自动跳,两者独立
|
||||
# 开「启用」:源店展示入口(与有无资产无关);「强制拦截」只控制自动跳
|
||||
force = bool(plan.force_intercept and role_hit and not done and has_assets)
|
||||
show_entry = bool(not done)
|
||||
show_entry = True
|
||||
return {
|
||||
'active': True,
|
||||
'force': force,
|
||||
|
||||
Reference in New Issue
Block a user