forgejo/routers/api/v1/admin
Gergely Nagy d07c8c821c
Do not require login_name & source_id for /admin/user/{username}
When editing a user via the API, do not require setting `login_name` or
`source_id`: for local accounts, these do not matter. However, when
editing a non-local account, require *both*, as before.

Fixes #1861.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-04-17 10:33:52 +02:00
..
adopt.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
cron.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
email.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
hooks.go webhook: add admin-hooks tests 2024-04-09 20:02:14 +02:00
org.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
repo.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
runners.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
user.go Do not require login_name & source_id for /admin/user/{username} 2024-04-17 10:33:52 +02:00