[PR #4775] [MERGED] API /admin/users/{username} missing parameter #17492

Closed
opened 2025-11-02 13:39:11 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4775
Author: @EnricoFerro
Created: 8/23/2018
Status: Merged
Merged: 8/23/2018
Merged by: @techknowlogick

Base: masterHead: master


📝 Commits (7)

📊 Changes

5 files changed (+337 additions, -20 deletions)

View changed files

📝 Gopkg.lock (+314 -20)
📝 routers/api/v1/admin/user.go (+6 -0)
📝 templates/swagger/v1_json.tmpl (+8 -0)
📝 vendor/code.gitea.io/sdk/gitea/admin_user.go (+2 -0)
📝 vendor/code.gitea.io/sdk/gitea/user.go (+7 -0)

📄 Description

This PR modify the logic of the api /admin/users/{username} as descripted in the issue #4765

Add two field in the structure EditUserOption and allow to modify the values for Disable Sign-In and
May Create Organization
image

The new two field in the swagger editor
image

This PR is dependend from go-gitea/go-sdk#114


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4775 **Author:** [@EnricoFerro](https://github.com/EnricoFerro) **Created:** 8/23/2018 **Status:** ✅ Merged **Merged:** 8/23/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (7) - [`b02607c`](https://github.com/go-gitea/gitea/commit/b02607c277cc07a0aea182736df20dd0cc16b994) Fix API /admin/users/{username} (issue #4765) - [`0db1188`](https://github.com/go-gitea/gitea/commit/0db11885ee2f8253d1ec6f076ba8293152fcb2db) Fix API /admin/users/{username} v2 - Add prohibit_login (issue #4765) - [`33195f4`](https://github.com/go-gitea/gitea/commit/33195f46272fcddabf3046693d811dad00981d45) Merge branch 'master' of https://github.com/EnricoFerro/gitea - [`0b3ebdf`](https://github.com/go-gitea/gitea/commit/0b3ebdfd1001c3b8ff8390d8c01f6c6447391ca2) fix from 'make generate-swagger' (issue #4765) - [`845c6aa`](https://github.com/go-gitea/gitea/commit/845c6aa90b6cd1d14d90cada14742aec17bb2a3e) Rollback vendor gitea/sdk - [`4f1eb42`](https://github.com/go-gitea/gitea/commit/4f1eb4295d732f724b0297bc0b8f06a5d90c3fa7) Launch 'dep ensure -update code.gitea.io/sdk' - [`29c55b8`](https://github.com/go-gitea/gitea/commit/29c55b8a409749fb2c89b2a19072c2f898a1ef5a) Merge branch 'master' into master ### 📊 Changes **5 files changed** (+337 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `Gopkg.lock` (+314 -20) 📝 `routers/api/v1/admin/user.go` (+6 -0) 📝 `templates/swagger/v1_json.tmpl` (+8 -0) 📝 `vendor/code.gitea.io/sdk/gitea/admin_user.go` (+2 -0) 📝 `vendor/code.gitea.io/sdk/gitea/user.go` (+7 -0) </details> ### 📄 Description This PR modify the logic of the api [/admin/users/{username}](https://try.gitea.io/api/swagger#/admin/adminEditUser) as descripted in the issue #4765 Add two field in the structure EditUserOption and allow to modify the values for **Disable Sign-In** and **May Create Organization** ![image](https://user-images.githubusercontent.com/25525316/44454473-f1fc0580-a5fb-11e8-9c5a-17a0174ddc27.png) The new two field in the swagger editor ![image](https://user-images.githubusercontent.com/25525316/44527711-f0a80700-a6e7-11e8-8510-c278fda2860f.png) This PR is dependend from go-gitea/go-sdk#114 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 13:39:11 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17492