summaryrefslogtreecommitdiffstats
path: root/modules/context/org.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 /modules/context/org.go
parent0b62aeb495c9c1daf816a754a0e4abbf8c62c2c0 (diff)
downloadgitea-f388661bda8097b5ff01548e6153c566690c9b5e.tar.gz
gitea-f388661bda8097b5ff01548e6153c566690c9b5e.zip
ACCESS_MODE_* -> AccessMode*
Diffstat (limited to 'modules/context/org.go')
-rw-r--r--modules/context/org.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/org.go b/modules/context/org.go
index 3804e210e6..acf83ff142 100644
--- a/modules/context/org.go
+++ b/modules/context/org.go
@@ -136,7 +136,7 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
return
}
- ctx.Org.IsTeamAdmin = ctx.Org.Team.IsOwnerTeam() || ctx.Org.Team.Authorize >= models.ACCESS_MODE_ADMIN
+ ctx.Org.IsTeamAdmin = ctx.Org.Team.IsOwnerTeam() || ctx.Org.Team.Authorize >= models.AccessModeAdmin
ctx.Data["IsTeamAdmin"] = ctx.Org.IsTeamAdmin
if requireTeamAdmin && !ctx.Org.IsTeamAdmin {
ctx.Handle(404, "OrgAssignment", err)