feat: Able to disable non-admin to create new organization (#927)

This commit is contained in:
Bo-Yi Wu authored and Lunny Xiao committed 2017-02-14 20:16:00 +08:00
1 parent 23aba523b5
commit d67b278a0d
7 files changed
+42 -3

No files matched your search

+1
View File
@@ -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() {