summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/api/v1/org/org.go2
1 files changed, 1 insertions, 1 deletions
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
}