jojo/routers/web/user
Gusted 7ed496ea37 fix: reflect allowed username change in profile setting (#11171)
- When working forgejo/forgejo!8714 I did not touch the UI to remove the
note and `disabled` attribute. This was not intentional, and was likely
caused by me straight going for testing (as the backend code would allow
the username change).
- Slightly refactor the context to a common function, don't hard error
if `CanUserRename` fails but does default to that you cannot rename in
that case (which is the standard behavior of OAuth2 users anyway).

I already was aware that it seems !8714 wasn't working on Codeberg but someone at FOSDEM pointed it out again, thus the reason for this bug fix.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11171
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2026-02-06 17:47:30 +01:00
..
setting fix: reflect allowed username change in profile setting (#11171) 2026-02-06 17:47:30 +01:00
avatar.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
code.go chore: minor code cleanup in search (#10549) 2025-12-23 00:38:51 +01:00
home.go feat: show note that user has no SSH keys (#11143) 2026-02-06 04:43:17 +01:00
home_test.go fix: Allow SHA-256 in PR commit URLs (#10309) 2025-12-16 00:45:00 +01:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
notification.go feat: rework notification table (#9926) 2025-11-29 23:03:56 +01:00
package.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
profile.go chore: Remove IsDeleted from action (activity) table (#9829) 2025-11-08 04:20:05 +01:00
search.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
stop_watch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
task.go feat(build): improve lint-locale-usage further (#8736) 2025-08-27 23:47:34 +02:00