From ac43eab51f9ac0d4c4bcc6db2bbc9ce3dbb34b7b Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 6 Apr 2017 23:48:49 -0400 Subject: Refactoring: rename Signed -> Logged --- routers/api/v1/user/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers/api/v1/user/user.go') diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index d797c650..11c3b8bb 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -41,7 +41,7 @@ func Search(ctx *context.APIContext) { AvatarUrl: users[i].AvatarLink(), FullName: users[i].FullName, } - if ctx.IsSigned { + if ctx.IsLogged { results[i].Email = users[i].Email } } @@ -64,7 +64,7 @@ func GetInfo(ctx *context.APIContext) { } // Hide user e-mail when API caller isn't signed in. - if !ctx.IsSigned { + if !ctx.IsLogged { u.Email = "" } ctx.JSON(200, u.APIFormat()) -- cgit v1.2.3