summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io
diff options
context:
space:
mode:
authorLanre Adelowo <adelowomailbox@gmail.com>2019-03-03 23:57:24 +0100
committertechknowlogick <matti@mdranta.net>2019-03-03 17:57:24 -0500
commit141c58f5a6353a3e9173ababd1532819ba2ee284 (patch)
treed888756084d086e455830f3d28526ced69de85d5 /vendor/code.gitea.io
parent8e202e28ad80452ced90ede3540e1662fa6d7da7 (diff)
downloadgitea-141c58f5a6353a3e9173ababd1532819ba2ee284.tar.gz
gitea-141c58f5a6353a3e9173ababd1532819ba2ee284.zip
add isAdmin to user model (#6231)
update vendor and add tests fix swagger
Diffstat (limited to 'vendor/code.gitea.io')
-rw-r--r--vendor/code.gitea.io/sdk/gitea/user.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/user.go b/vendor/code.gitea.io/sdk/gitea/user.go
index 57cf752316..42d9b983e3 100644
--- a/vendor/code.gitea.io/sdk/gitea/user.go
+++ b/vendor/code.gitea.io/sdk/gitea/user.go
@@ -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