Change constants to UPPERCASE_WITH_UNDERSCORE style

This commit is contained in:
Peter Smit 2015-02-09 13:36:33 +02:00
parent 4e79adf6b5
commit 0d158e569b
9 changed files with 42 additions and 42 deletions

View file

@ -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) {