mirror of
https://github.com/langgenius/dify.git
synced 2026-01-07 23:04:12 +00:00
fix: get app model without check tenant in trial
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user