mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-17 10:26:25 +08:00
add isAdmin to user model (#6231)
update vendor and add tests fix swagger
This commit is contained in:

committed by
techknowlogick

parent
8e202e28ad
commit
141c58f5a6
2
vendor/code.gitea.io/sdk/gitea/user.go
generated
vendored
2
vendor/code.gitea.io/sdk/gitea/user.go
generated
vendored
@ -24,6 +24,8 @@ type User struct {
|
||||
AvatarURL string `json:"avatar_url"`
|
||||
// User locale
|
||||
Language string `json:"language"`
|
||||
// Is the user an administrator
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
}
|
||||
|
||||
// MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility
|
||||
|
Reference in New Issue
Block a user