Service Accounts: Add enabled/disabled status to list (#46259)

* ServiceAccounts: improve where condition

* ServiceAccounts: Add Enabled/Disabled status to list
This commit is contained in:
J Guerreiro
2022-03-08 13:10:16 +00:00
committed by GitHub
parent 1f3f4ebe21
commit 874ac9180b
3 changed files with 21 additions and 6 deletions

View File

@@ -34,6 +34,7 @@ type ServiceAccountDTO struct {
Name string `json:"name" xorm:"name"`
Login string `json:"login" xorm:"login"`
OrgId int64 `json:"orgId" xorm:"org_id"`
IsDisabled bool `json:"isDisabled" xorm:"is_disabled"`
Role string `json:"role" xorm:"role"`
Tokens int64 `json:"tokens"`
AvatarUrl string `json:"avatarUrl"`