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 2096aa61e8
commit b211147ff0
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,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 = (
@ -30,6 +31,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[P, R]):
@wraps(view_func)