diff options
author | 6543 <6543@obermui.de> | 2021-02-18 09:25:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 16:25:35 +0800 |
commit | 8d5c795cc4cc6b254a897461a860f25b0708ee14 (patch) | |
tree | 691eec6fd0abe6824f84e6eb64f4d2f086918a3a /templates/swagger/v1_json.tmpl | |
parent | ce0346448ff6c8e92f794e7b724f3d4333412a9b (diff) | |
download | gitea-8d5c795cc4cc6b254a897461a860f25b0708ee14.tar.gz gitea-8d5c795cc4cc6b254a897461a860f25b0708ee14.zip |
[API] Add Restricted Field to User (#14630)
* Expose Restricted field for User
* Add Option to Change Restricted on User via adminEditUser API
* Add test who change restricted & test if it changed it ...
* make generate-swagger
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/swagger/v1_json.tmpl')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 2dedb56d1e..71caee9c75 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -13796,6 +13796,10 @@ "type": "boolean", "x-go-name": "ProhibitLogin" }, + "restricted": { + "type": "boolean", + "x-go-name": "Restricted" + }, "source_id": { "type": "integer", "format": "int64", @@ -16209,6 +16213,11 @@ "description": "the user's username", "type": "string", "x-go-name": "UserName" + }, + "restricted": { + "description": "Is user restricted", + "type": "boolean", + "x-go-name": "Restricted" } }, "x-go-package": "code.gitea.io/gitea/modules/structs" |