diff --git a/routers/api/v1/org/org.go b/routers/api/v1/org/org.go index c300c28141..6b7d38e3f4 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.go @@ -85,7 +85,7 @@ func Create(ctx *context.APIContext, form api.CreateOrgOption) { // "422": // "$ref": "#/responses/validationError" - if !ctx.User.AllowCreateOrganization { + if !ctx.User.CanCreateOrganization() { ctx.Error(403, "Create organization not allowed", nil) return }