summaryrefslogtreecommitdiffstats
path: root/routers/admin/users.go
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-02-14 20:16:00 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-14 20:16:00 +0800
commitd67b278a0d05e122bf510ac52bfbd69eab4f654d (patch)
tree28fe4dd05973026013666fd0320a7dea40d94109 /routers/admin/users.go
parent23aba523b551d20ee2bbc694ae630989bcdeaccd (diff)
downloadgitea-d67b278a0d05e122bf510ac52bfbd69eab4f654d.tar.gz
gitea-d67b278a0d05e122bf510ac52bfbd69eab4f654d.zip
feat: Able to disable non-admin to create new organization (#927)
Diffstat (limited to 'routers/admin/users.go')
-rw-r--r--routers/admin/users.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/admin/users.go b/routers/admin/users.go
index c02f366f66..d480029143 100644
--- a/routers/admin/users.go
+++ b/routers/admin/users.go
@@ -158,6 +158,7 @@ func EditUser(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("admin.users.edit_account")
ctx.Data["PageIsAdmin"] = true
ctx.Data["PageIsAdminUsers"] = true
+ ctx.Data["DisableRegularOrgCreation"] = setting.Admin.DisableRegularOrgCreation
prepareUserInfo(ctx)
if ctx.Written() {