mirror of https://github.com/langgenius/dify.git
fix: get app model without check tenant in trial
This commit is contained in:
parent
2096aa61e8
commit
b211147ff0
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue