fix: get app model without check tenant in trial

This commit is contained in:
Yansong Zhang 2025-10-13 15:13:07 +08:00
parent 50bdbfae69
commit cc349e70b1
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ def _load_app_model(app_id: str) -> App | None:
)
return app_model
def _load_app_model_with_trial(app_id: str) -> App | None:
assert isinstance(current_user, Account)
app_model = (
@ -31,6 +32,7 @@ def _load_app_model_with_trial(app_id: str) -> App | None:
)
return app_model
def get_app_model(view: Callable[P, R] | None = None, *, mode: Union[AppMode, list[AppMode], None] = None):
def decorator(view_func: Callable[P1, R1]):
@wraps(view_func)