summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/user/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go
index 3cb9f0aece..b338e112ab 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
}