diff options
Diffstat (limited to 'routers/org/setting.go')
-rw-r--r-- | routers/org/setting.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/org/setting.go b/routers/org/setting.go index 128fba36a8..14681e4c59 100644 --- a/routers/org/setting.go +++ b/routers/org/setting.go @@ -83,8 +83,8 @@ func SettingsPost(ctx *context.Context, form auth.UpdateOrgSettingForm) { ctx.Redirect(ctx.Org.OrgLink + "/settings") } -func SettingsAvatar(ctx *context.Context, form auth.UploadAvatarForm) { - form.Enable = true +func SettingsAvatar(ctx *context.Context, form auth.AvatarForm) { + form.Source = auth.AVATAR_LOCAL if err := user.UpdateAvatarSetting(ctx, form, ctx.Org.Organization); err != nil { ctx.Flash.Error(err.Error()) } else { |