aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authorPeter Smit <peter@smitmail.eu>2015-02-09 13:36:33 +0200
committerPeter Smit <peter@smitmail.eu>2015-02-09 13:36:33 +0200
commit0d158e569b0c19614b5e946849e8b7a8e4a75015 (patch)
tree7702d6fbf2d26b789520f7ef9db11946797e1942 /routers/api
parent4e79adf6b5bf7ec7bc3b2b47469baafd1cb0b774 (diff)
downloadgitea-0d158e569b0c19614b5e946849e8b7a8e4a75015.tar.gz
gitea-0d158e569b0c19614b5e946849e8b7a8e4a75015.zip
Change constants to UPPERCASE_WITH_UNDERSCORE style
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo.go b/routers/api/v1/repo.go
index 78c9f9a6a3..f5128e4746 100644
--- a/routers/api/v1/repo.go
+++ b/routers/api/v1/repo.go
@@ -255,7 +255,7 @@ func ListMyRepos(ctx *middleware.Context) {
return
}
- repos[i] = ToApiRepository(repo.Owner, repo, api.Permission{false, access >= models.WriteAccess, true})
+ repos[i] = ToApiRepository(repo.Owner, repo, api.Permission{false, access >= models.ACCESS_MODE_WRITE, true})
// FIXME: cache result to reduce DB query?
if repo.Owner.IsOrganization() && repo.Owner.IsOwnedBy(ctx.User.Id) {