aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/org/team.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/org/team.go')
-rw-r--r--routers/api/v1/org/team.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/org/team.go b/routers/api/v1/org/team.go
index c749751ac4..99bbd9eefe 100644
--- a/routers/api/v1/org/team.go
+++ b/routers/api/v1/org/team.go
@@ -337,7 +337,7 @@ func GetTeamMembers(ctx *context.APIContext) {
}
members := make([]*api.User, len(team.Members))
for i, member := range team.Members {
- members[i] = convert.ToUser(member, ctx.IsSigned, ctx.User.IsAdmin)
+ members[i] = convert.ToUser(member, ctx.User)
}
ctx.JSON(http.StatusOK, members)
}
@@ -380,7 +380,7 @@ func GetTeamMember(ctx *context.APIContext) {
ctx.NotFound()
return
}
- ctx.JSON(http.StatusOK, convert.ToUser(u, ctx.IsSigned, ctx.User.IsAdmin))
+ ctx.JSON(http.StatusOK, convert.ToUser(u, ctx.User))
}
// AddTeamMember api for add a member to a team