summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-11-07 17:20:37 +0100
committerSandro Santilli <strk@kbt.io>2016-11-07 17:20:37 +0100
commitf388661bda8097b5ff01548e6153c566690c9b5e (patch)
treed0bdf0785474f50eb42b6b4852922201620221cf /routers/api/v1/api.go
parent0b62aeb495c9c1daf816a754a0e4abbf8c62c2c0 (diff)
downloadgitea-f388661bda8097b5ff01548e6153c566690c9b5e.tar.gz
gitea-f388661bda8097b5ff01548e6153c566690c9b5e.zip
ACCESS_MODE_* -> AccessMode*
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index 2deafa23c1..e8db9cb8e4 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -63,7 +63,7 @@ func repoAssignment() macaron.Handler {
}
if ctx.IsSigned && ctx.User.IsAdmin {
- ctx.Repo.AccessMode = models.ACCESS_MODE_OWNER
+ ctx.Repo.AccessMode = models.AccessModeOwner
} else {
mode, err := models.AccessLevel(ctx.User, repo)
if err != nil {