mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-20 21:18:00 +02: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
@ -211,6 +211,7 @@ func (u *User) APIFormat() *api.User {
|
||||
Email: u.getEmail(),
|
||||
AvatarURL: u.AvatarLink(),
|
||||
Language: u.Language,
|
||||
IsAdmin: u.IsAdmin,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user