summaryrefslogtreecommitdiffstats
path: root/integrations/api_team_user_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-10-24 10:52:17 +0800
committerGitHub <noreply@github.com>2019-10-24 10:52:17 +0800
commitbd7709a60200a760d872f8210dae9b527fc99d8f (patch)
tree241a710cf45f6530dcff1aa8cf1de56a571c6a2a /integrations/api_team_user_test.go
parentab791fe7bbcf7b57e1ba0e577172b6d6252847a7 (diff)
downloadgitea-bd7709a60200a760d872f8210dae9b527fc99d8f.tar.gz
gitea-bd7709a60200a760d872f8210dae9b527fc99d8f.zip
Hide some user information via API if user have no enough permission (#8655)
* Hide some user information via API if user have no enough permission * fix test
Diffstat (limited to 'integrations/api_team_user_test.go')
-rw-r--r--integrations/api_team_user_test.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/integrations/api_team_user_test.go b/integrations/api_team_user_test.go
index 70d52c1360..4df4dac016 100644
--- a/integrations/api_team_user_test.go
+++ b/integrations/api_team_user_test.go
@@ -29,7 +29,6 @@ func TestAPITeamUser(t *testing.T) {
var user2 *api.User
DecodeJSON(t, resp, &user2)
user2.Created = user2.Created.In(time.Local)
- user2.LastLogin = user2.LastLogin.In(time.Local)
user := models.AssertExistsAndLoadBean(t, &models.User{Name: "user2"}).(*models.User)
assert.Equal(t, convert.ToUser(user, true, false), user2)