summaryrefslogtreecommitdiffstats
path: root/routers/org
diff options
context:
space:
mode:
Diffstat (limited to 'routers/org')
-rw-r--r--routers/org/org.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/org/org.go b/routers/org/org.go
index 156ccb3ee6..f937ac70d8 100644
--- a/routers/org/org.go
+++ b/routers/org/org.go
@@ -33,7 +33,7 @@ func CreatePost(ctx *context.Context, form auth.CreateOrgForm) {
org := &models.User{
Name: form.OrgName,
IsActive: true,
- Type: models.USER_TYPE_ORGANIZATION,
+ Type: models.UserTypeOrganization,
}
if err := models.CreateOrganization(org, ctx.User); err != nil {