[PR #4774] [CLOSED] API /admin/users/{username} missing parameter #17491

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4774
Author: @EnricoFerro
Created: 8/23/2018
Status: Closed

Base: masterHead: master


📝 Commits (4)

📊 Changes

3 files changed (+16 additions, -0 deletions)

View changed files

📝 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)

📄 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 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/4774 **Author:** [@EnricoFerro](https://github.com/EnricoFerro) **Created:** 8/23/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`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) ### 📊 Changes **3 files changed** (+16 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `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) </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) --- <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:03 -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#17491