summaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-13 17:37:02 -0500
committerUnknwon <u@gogs.io>2015-11-13 17:37:02 -0500
commitf8ae161c743f3249e4b580cddc46da41b98652a9 (patch)
tree1bb44bd477ab0a23313c68bd1309b2a68bfffd67 /routers/api
parent1d57f0d64fcd9aec16b4003d5664f31ea748da03 (diff)
downloadgitea-f8ae161c743f3249e4b580cddc46da41b98652a9.tar.gz
gitea-f8ae161c743f3249e4b580cddc46da41b98652a9.zip
fix #1302
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo.go b/routers/api/v1/repo.go
index 2341e28878..b4da4c6ff4 100644
--- a/routers/api/v1/repo.go
+++ b/routers/api/v1/repo.go
@@ -106,9 +106,9 @@ func ListMyRepos(ctx *middleware.Context) {
}
numOwnRepos := len(ownRepos)
- accessibleRepos, err := ctx.User.GetAccessibleRepositories()
+ accessibleRepos, err := ctx.User.GetRepositoryAccesses()
if err != nil {
- ctx.APIError(500, "GetAccessibleRepositories", err)
+ ctx.APIError(500, "GetRepositoryAccesses", err)
return
}