|
@ -85,7 +85,7 @@ func Create(ctx *context.APIContext, form api.CreateOrgOption) { |
|
|
// "422":
|
|
|
// "422":
|
|
|
// "$ref": "#/responses/validationError"
|
|
|
// "$ref": "#/responses/validationError"
|
|
|
|
|
|
|
|
|
if !ctx.User.AllowCreateOrganization { |
|
|
|
|
|
|
|
|
if !ctx.User.CanCreateOrganization() { |
|
|
ctx.Error(403, "Create organization not allowed", nil) |
|
|
ctx.Error(403, "Create organization not allowed", nil) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|