summaryrefslogtreecommitdiffstats
path: root/routers/org
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-11-07 17:53:22 +0100
committerSandro Santilli <strk@kbt.io>2016-11-07 17:53:22 +0100
commitaadd7dcdc317c5e1665318b537162749514ac212 (patch)
tree5e4772ba6ca97dd7dca62325024ec4359b0636c0 /routers/org
parentb3828e38a5fbb92a92bae11e1e126b87fbad09c8 (diff)
downloadgitea-aadd7dcdc317c5e1665318b537162749514ac212.tar.gz
gitea-aadd7dcdc317c5e1665318b537162749514ac212.zip
And others
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 {