diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-08-24 22:01:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-24 22:01:03 +0800 |
commit | f61a1d210c4ed6f616b4bee25e8231b5bc67a640 (patch) | |
tree | 340147776c7485d154b4ed9e7c0c604e34fdaa53 /routers/user/profile.go | |
parent | da230a287264d38156e950a3149e43f65599e65b (diff) | |
download | gitea-f61a1d210c4ed6f616b4bee25e8231b5bc67a640.tar.gz gitea-f61a1d210c4ed6f616b4bee25e8231b5bc67a640.zip |
Fix missing collabrative repos (#2367)
* fix missing collabrative repos
* fix bug of collabrative
* fix SQL quotes
Diffstat (limited to 'routers/user/profile.go')
-rw-r--r-- | routers/user/profile.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go index f56ddc4eab..7380501f4b 100644 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -205,13 +205,14 @@ func Profile(ctx *context.Context) { ctx.Data["Total"] = total } else { repos, count, err = models.SearchRepositoryByName(&models.SearchRepoOptions{ - Keyword: keyword, - OwnerID: ctxUser.ID, - OrderBy: orderBy, - Private: showPrivate, - Page: page, - IsProfile: true, - PageSize: setting.UI.User.RepoPagingNum, + Keyword: keyword, + OwnerID: ctxUser.ID, + OrderBy: orderBy, + Private: showPrivate, + Page: page, + IsProfile: true, + PageSize: setting.UI.User.RepoPagingNum, + Collaborate: true, }) if err != nil { ctx.Handle(500, "SearchRepositoryByName", err) |