mirror of
https://gitee.com/gitea/gitea
synced 2025-11-16 22:40:26 +08: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