diff options
author | Peter Smit <peter@smitmail.eu> | 2015-02-09 13:36:33 +0200 |
---|---|---|
committer | Peter Smit <peter@smitmail.eu> | 2015-02-09 13:36:33 +0200 |
commit | 0d158e569b0c19614b5e946849e8b7a8e4a75015 (patch) | |
tree | 7702d6fbf2d26b789520f7ef9db11946797e1942 /routers/org/teams.go | |
parent | 4e79adf6b5bf7ec7bc3b2b47469baafd1cb0b774 (diff) | |
download | gitea-0d158e569b0c19614b5e946849e8b7a8e4a75015.tar.gz gitea-0d158e569b0c19614b5e946849e8b7a8e4a75015.zip |
Change constants to UPPERCASE_WITH_UNDERSCORE style
Diffstat (limited to 'routers/org/teams.go')
-rw-r--r-- | routers/org/teams.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/routers/org/teams.go b/routers/org/teams.go index 4fef02c987..a315abe03e 100644 --- a/routers/org/teams.go +++ b/routers/org/teams.go @@ -171,11 +171,11 @@ func NewTeamPost(ctx *middleware.Context, form auth.CreateTeamForm) { var auth models.AccessMode switch form.Permission { case "read": - auth = models.ReadAccess + auth = models.ACCESS_MODE_READ case "write": - auth = models.WriteAccess + auth = models.ACCESS_MODE_WRITE case "admin": - auth = models.AdminAccess + auth = models.ACCESS_MODE_ADMIN default: ctx.Error(401) return @@ -252,11 +252,11 @@ func EditTeamPost(ctx *middleware.Context, form auth.CreateTeamForm) { var auth models.AccessMode switch form.Permission { case "read": - auth = models.ReadAccess + auth = models.ACCESS_MODE_READ case "write": - auth = models.WriteAccess + auth = models.ACCESS_MODE_WRITE case "admin": - auth = models.AdminAccess + auth = models.ACCESS_MODE_ADMIN default: ctx.Error(401) return |