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