diff options
author | Sandro Santilli <strk@kbt.io> | 2016-11-07 17:53:22 +0100 |
---|---|---|
committer | Sandro Santilli <strk@kbt.io> | 2016-11-07 17:53:22 +0100 |
commit | aadd7dcdc317c5e1665318b537162749514ac212 (patch) | |
tree | 5e4772ba6ca97dd7dca62325024ec4359b0636c0 /routers/api | |
parent | b3828e38a5fbb92a92bae11e1e126b87fbad09c8 (diff) | |
download | gitea-aadd7dcdc317c5e1665318b537162749514ac212.tar.gz gitea-aadd7dcdc317c5e1665318b537162749514ac212.zip |
And others
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/admin/org.go | 2 | ||||
-rw-r--r-- | routers/api/v1/user/user.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go index 1deaa34b43..b764f7a813 100644 --- a/routers/api/v1/admin/org.go +++ b/routers/api/v1/admin/org.go @@ -27,7 +27,7 @@ func CreateOrg(ctx *context.APIContext, form api.CreateOrgOption) { Website: form.Website, Location: form.Location, IsActive: true, - Type: models.USER_TYPE_ORGANIZATION, + Type: models.UserTypeOrganization, } if err := models.CreateOrganization(org, u); err != nil { if models.IsErrUserAlreadyExist(err) || diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index e7322d725f..92ad7c81e5 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -16,7 +16,7 @@ import ( func Search(ctx *context.APIContext) { opts := &models.SearchUserOptions{ Keyword: ctx.Query("q"), - Type: models.USER_TYPE_INDIVIDUAL, + Type: models.UserTypeIndividual, PageSize: com.StrTo(ctx.Query("limit")).MustInt(), } if opts.PageSize == 0 { |