summaryrefslogtreecommitdiffstats
path: root/routers/org
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/org
parent0b62aeb495c9c1daf816a754a0e4abbf8c62c2c0 (diff)
downloadgitea-f388661bda8097b5ff01548e6153c566690c9b5e.tar.gz
gitea-f388661bda8097b5ff01548e6153c566690c9b5e.zip
ACCESS_MODE_* -> AccessMode*
Diffstat (limited to 'routers/org')
-rw-r--r--routers/org/teams.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/routers/org/teams.go b/routers/org/teams.go
index c6636aa836..c2097935a8 100644
--- a/routers/org/teams.go
+++ b/routers/org/teams.go
@@ -226,11 +226,11 @@ func EditTeamPost(ctx *context.Context, form auth.CreateTeamForm) {
var auth models.AccessMode
switch form.Permission {
case "read":
- auth = models.ACCESS_MODE_READ
+ auth = models.AccessModeRead
case "write":
- auth = models.ACCESS_MODE_WRITE
+ auth = models.AccessModeWrite
case "admin":
- auth = models.ACCESS_MODE_ADMIN
+ auth = models.AccessModeAdmin
default:
ctx.Error(401)
return