summaryrefslogtreecommitdiffstats
path: root/routers/org/teams.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/org/teams.go')
-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