Skip to content

Commit

Permalink
fix: drop useless and wrong code in Account (#11961)
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <[email protected]>
  • Loading branch information
yihong0618 authored Dec 23, 2024
1 parent c4091c4 commit dfc25db
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ def get_by_openid(cls, provider: str, open_id: str) -> db.Model:
return db.session.query(Account).filter(Account.id == account_integrate.account_id).one_or_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
def is_admin_or_owner(self):
return TenantAccountRole.is_privileged_role(self._current_tenant.current_role)
Expand Down

0 comments on commit dfc25db

Please sign in to comment.