feat: Able to disable non-admin to create new organization (#927)
This commit is contained in:
parent
23aba523b5
commit
d67b278a0d
7 changed files with 42 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue