#2154 minor fix
This commit is contained in:
parent
59c965a5ec
commit
0cce4439ce
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue