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
}