From 141c58f5a6353a3e9173ababd1532819ba2ee284 Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Sun, 3 Mar 2019 23:57:24 +0100 Subject: add isAdmin to user model (#6231) update vendor and add tests fix swagger --- routers/api/v1/user/user.go | 1 + 1 file changed, 1 insertion(+) (limited to 'routers') diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index 40d1b76805..cbc7bbc238 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -75,6 +75,7 @@ func Search(ctx *context.APIContext) { UserName: users[i].Name, AvatarURL: users[i].AvatarLink(), FullName: markup.Sanitize(users[i].FullName), + IsAdmin: users[i].IsAdmin, } if ctx.IsSigned && (!users[i].KeepEmailPrivate || ctx.User.IsAdmin) { results[i].Email = users[i].Email -- cgit v1.2.3