Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit e4effe4

Browse files
adelowozeripath
authored andcommitted
add IsAdmin to user (#151)
1 parent 9c4f648 commit e4effe4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitea/user.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ type User struct {
2424
AvatarURL string `json:"avatar_url"`
2525
// User locale
2626
Language string `json:"language"`
27+
// Is the user an administrator
28+
IsAdmin bool `json:"is_admin"`
2729
}
2830

2931
// MarshalJSON implements the json.Marshaler interface for User, adding field(s) for backward compatibility

0 commit comments

Comments
 (0)