1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00
This commit is contained in:
Unknwon
2015-12-11 21:23:19 -05:00
parent 59c965a5ec
commit 0cce4439ce
2 changed files with 3 additions and 3 deletions

View File

@@ -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
}