From ec0ae5d50c59315a3c597b1cf24d4c5508c718e5 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Tue, 14 Mar 2017 20:51:46 -0400 Subject: Refactor and fix incorrect comment (#1247) --- routers/api/v1/repo/release.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api/v1/repo/release.go') diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go index 7dacb8018a..a367e55717 100644 --- a/routers/api/v1/repo/release.go +++ b/routers/api/v1/repo/release.go @@ -40,7 +40,7 @@ func ListReleases(ctx *context.APIContext) { return } rels := make([]*api.Release, len(releases)) - access, err := models.AccessLevel(ctx.User, ctx.Repo.Repository) + access, err := models.AccessLevel(ctx.User.ID, ctx.Repo.Repository) if err != nil { ctx.Error(500, "AccessLevel", err) return -- cgit v1.2.3