mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-10 08:42:00 +02:00
Change constants to UPPERCASE_WITH_UNDERSCORE style
This commit is contained in:
1 parent
4e79adf6b5
commit
0d158e569b
9 files changed
+42
-42
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user