瀏覽代碼

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

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
tags/0.14.2
yihong 10 月之前
父節點
當前提交
dfc25dbdd0
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 0 行新增5 行删除
  1. 0
    5
      api/models/account.py

+ 0
- 5
api/models/account.py 查看文件

@@ -99,11 +99,6 @@ class Account(UserMixin, 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)

Loading…
取消
儲存