fix build error
This commit is contained in:
parent
d4c63672a7
commit
7ee585f3cc
|
@ -12,7 +12,6 @@ import (
|
|||
"strings"
|
||||
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"code.gitea.io/gitea/modules/setting"
|
||||
|
||||
"github.com/Unknwon/com"
|
||||
"github.com/go-xorm/builder"
|
||||
|
|
|
@ -24,7 +24,7 @@ const (
|
|||
// Create render the page for create organization
|
||||
func Create(ctx *context.Context) {
|
||||
ctx.Data["Title"] = ctx.Tr("new_org")
|
||||
ctx.Data["DefaultVisibilityMode"] = Setting.Service.DefaultVisibilityMode
|
||||
ctx.Data["DefaultVisibilityMode"] = setting.Service.DefaultVisibilityMode
|
||||
if !ctx.User.CanCreateOrganization() {
|
||||
ctx.ServerError("Not allowed", errors.New(ctx.Tr("org.form.create_org_not_allowed")))
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user