gitea/routers/api/v1/admin
Andrew Melnick 688430e3ce
Allow admins to rename non-local users (#35970)
Presently, attempting to rename a non-local (e.g. Oauth2 or LDAP) user
results in an error, even if the requester is an administrator. As far
as I can tell, this is a security feature, not architectural in nature,
as automatic account linking could be used to take control of another
user's account. This is not a concern for an administrator, who we
should trust to know what they are doing.

This patch allows admins, and only admins, to rename non-local users.

Fixes https://github.com/go-gitea/gitea/issues/18308 (sort of)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-11-23 20:59:55 +07:00
..
action.go Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
adopt.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
cron.go Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
email.go Refactor error system (#33626) 2025-02-17 12:41:03 +07:00
hooks.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 +07:00
org.go Support actions and reusable workflows from private repos (#32562) 2025-10-25 17:37:33 +07:00
repo.go Add a `login`/`login-name`/`username` disambiguation to affected endpoint parameters and response/request models (#34901) 2025-06-29 21:17:45 +07:00
runners.go Actions Runner rest api (#33873) 2025-04-18 15:22:41 +07:00
user.go Allow admins to rename non-local users (#35970) 2025-11-23 20:59:55 +07:00
user_badge.go Add a `login`/`login-name`/`username` disambiguation to affected endpoint parameters and response/request models (#34901) 2025-06-29 21:17:45 +07:00