mirror of
https://github.com/go-gitea/gitea
synced 2025-07-15 23:17:19 +00:00
feat: Able to disable non-admin to create new organization (#927)
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user