diff options
author | Unknwon <u@gogs.io> | 2015-11-13 17:37:02 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-13 17:37:02 -0500 |
commit | f8ae161c743f3249e4b580cddc46da41b98652a9 (patch) | |
tree | 1bb44bd477ab0a23313c68bd1309b2a68bfffd67 /routers/api | |
parent | 1d57f0d64fcd9aec16b4003d5664f31ea748da03 (diff) | |
download | gitea-f8ae161c743f3249e4b580cddc46da41b98652a9.tar.gz gitea-f8ae161c743f3249e4b580cddc46da41b98652a9.zip |
fix #1302
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/repo.go | 4 |
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 } |