diff options
author | Giteabot <teabot@gitea.io> | 2024-01-16 09:51:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 01:51:46 +0000 |
commit | 376fa0d8c49ca8a290ebb328281a56af346f5785 (patch) | |
tree | a4087981e5a72f0c8326ccf52867443daf663391 /templates | |
parent | be541d9877f4c5f27d8c903f021c59d5373094f9 (diff) | |
download | gitea-376fa0d8c49ca8a290ebb328281a56af346f5785.tar.gz gitea-376fa0d8c49ca8a290ebb328281a56af346f5785.zip |
Forbid removing the last admin user (#28337) (#28793)
Backport #28337 by @yp05327
Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 644fe6aa26..c88fcfb8bd 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -660,6 +660,9 @@ "200": { "$ref": "#/responses/User" }, + "400": { + "$ref": "#/responses/error" + }, "403": { "$ref": "#/responses/forbidden" }, |