diff options
author | Unknwon <u@gogs.io> | 2016-03-21 12:53:04 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-21 12:53:04 -0400 |
commit | 90e93b1f3a10f2810f7a34024288ae73e64e1098 (patch) | |
tree | ce81e7abe40f35a175cc8fe5b866e89d2cf9d232 /routers/api/v1/admin/org.go | |
parent | e6f927f61af927156798390e64f17dd6755697e7 (diff) |
Change list teams API to non-admin specific
Diffstat (limited to 'routers/api/v1/admin/org.go')
-rw-r--r-- | routers/api/v1/admin/org.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go index fcce3b93..e82fc3ed 100644 --- a/routers/api/v1/admin/org.go +++ b/routers/api/v1/admin/org.go @@ -33,7 +33,7 @@ func CreateOrg(ctx *context.APIContext, form api.CreateOrgOption) { if models.IsErrUserAlreadyExist(err) || models.IsErrNameReserved(err) || models.IsErrNamePatternNotAllowed(err) { - ctx.Error(422, "CreateOrganization", err) + ctx.Error(422, "", err) } else { ctx.Error(500, "CreateOrganization", err) } |