gitea/routers/api/v1
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
..
activitypub Fix context usages (#35348) 2025-08-27 11:00:01 +07:00
admin Allow admins to rename non-local users (#35970) 2025-11-23 20:59:55 +07:00
misc enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +07:00
notify Refactor error system (#33610) 2025-02-16 22:13:17 +07:00
org Allow admins to rename non-local users (#35970) 2025-11-23 20:59:55 +07:00
packages Add package version api endpoints (#34173) 2025-04-13 20:00:44 +07:00
repo Fix various permission & login related bugs (#36002) 2025-11-22 07:16:08 +07:00
settings Add API endpoint to request contents of multiple files simultaniously (#34139) 2025-04-22 01:20:11 +07:00
shared Add workflow_run api + webhook (#33964) 2025-06-20 20:14:00 +07:00
swagger Fix diffpatch API endpoint (#35610) 2025-10-10 00:39:14 +07:00
user Support actions and reusable workflows from private repos (#32562) 2025-10-25 17:37:33 +07:00
utils Use git model to detect whether branch exist instead of gitrepo method (#35459) 2025-10-25 10:08:25 +07:00
api.go Fix various permission & login related bugs (#36002) 2025-11-22 07:16:08 +07:00