summaryrefslogtreecommitdiffstats
path: root/routers/routes/routes.go
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2017-07-17 05:04:43 +0300
committerLunny Xiao <xiaolunwen@gmail.com>2017-07-17 10:04:43 +0800
commitf33e6ae09ec27e898bb8f2cc44d587ea3b8e0dee (patch)
tree2c6a268356fcb5fd73ee468055869b129b14c6ed /routers/routes/routes.go
parent047a67a90b455a077e8b6f6deaad6b7ec4b50810 (diff)
downloadgitea-f33e6ae09ec27e898bb8f2cc44d587ea3b8e0dee.tar.gz
gitea-f33e6ae09ec27e898bb8f2cc44d587ea3b8e0dee.zip
Remove unit types commits and settings (#2161)
* Remove unit types commits and settings * Can not limit units in administrator teams * Limit changing units only to teams with read and write access mode * Small code optimization
Diffstat (limited to 'routers/routes/routes.go')
-rw-r--r--routers/routes/routes.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index 169f95e289..d085a0910e 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -450,8 +450,8 @@ func RegisterRoutes(m *macaron.Macaron) {
}, func(ctx *context.Context) {
ctx.Data["PageIsSettings"] = true
- }, context.UnitTypes(), context.LoadRepoUnits(), context.CheckUnit(models.UnitTypeSettings))
- }, reqSignIn, context.RepoAssignment(), reqRepoAdmin, context.RepoRef())
+ })
+ }, reqSignIn, context.RepoAssignment(), reqRepoAdmin, context.UnitTypes(), context.LoadRepoUnits(), context.RepoRef())
m.Get("/:username/:reponame/action/:action", reqSignIn, context.RepoAssignment(), repo.Action)