mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
#2154 minor fix
This commit is contained in:
@@ -40,7 +40,7 @@ func Settings(ctx *middleware.Context) {
|
||||
}
|
||||
|
||||
func handlerUsernameChange(ctx *middleware.Context, newName string) {
|
||||
if len(newName) == 0 {
|
||||
if len(newName) == 0 || !ctx.User.IsLocal() {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user