mirror of
https://github.com/go-gitea/gitea
synced 2025-07-14 22:47:21 +00:00
Change list teams API to non-admin specific
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user