mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 12:29:17 +08:00
cleanup: remove get_interates
This commit is contained in:
parent
49bd1a7a49
commit
accbbae755
@ -102,10 +102,6 @@ class Account(UserMixin, Base):
|
|||||||
return db.session.query(Account).filter(Account.id == account_integrate.account_id).one_or_none()
|
return db.session.query(Account).filter(Account.id == account_integrate.account_id).one_or_none()
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_integrates(self) -> list[db.Model]:
|
|
||||||
ai = db.Model
|
|
||||||
return db.session.query(ai).filter(ai.account_id == self.id).all()
|
|
||||||
|
|
||||||
# check current_user.current_tenant.current_role in ['admin', 'owner']
|
# check current_user.current_tenant.current_role in ['admin', 'owner']
|
||||||
@property
|
@property
|
||||||
def is_admin_or_owner(self):
|
def is_admin_or_owner(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user