소스 검색

fix: drop useless and wrong code in Account (#11961)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
tags/0.14.2
yihong 10 달 전
부모
커밋
dfc25dbdd0
No account linked to committer's email address
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0
    5
      api/models/account.py

+ 0
- 5
api/models/account.py 파일 보기

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']
@property @property
def is_admin_or_owner(self): def is_admin_or_owner(self):
return TenantAccountRole.is_privileged_role(self._current_tenant.current_role) return TenantAccountRole.is_privileged_role(self._current_tenant.current_role)

Loading…
취소
저장