From 0cce4439ceab9d53592e526f8840348a293e463d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 11 Dec 2015 21:23:19 -0500 Subject: #2154 minor fix --- routers/user/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/user/setting.go') diff --git a/routers/user/setting.go b/routers/user/setting.go index 3cb9f0ae..b338e112 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -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 } -- cgit v1.2.3