|
@@ -58,6 +58,7 @@ func Settings(c *context.Context) {
|
|
|
c.Data["is_beta"] = c.User.IsBeta
|
|
c.Data["is_beta"] = c.User.IsBeta
|
|
|
c.Data["show_ads"] = c.User.ShowAds
|
|
c.Data["show_ads"] = c.User.ShowAds
|
|
|
c.Data["private_email"] = c.User.PrivateEmail
|
|
c.Data["private_email"] = c.User.PrivateEmail
|
|
|
|
|
+ c.Data["private_profile"] = c.User.PrivateProfile
|
|
|
c.Success(SETTINGS_PROFILE)
|
|
c.Success(SETTINGS_PROFILE)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -125,6 +126,7 @@ func SettingsPost(c *context.Context, f form.UpdateProfile) {
|
|
|
c.User.IsBeta = f.IsBeta
|
|
c.User.IsBeta = f.IsBeta
|
|
|
c.User.ShowAds = f.ShowAds
|
|
c.User.ShowAds = f.ShowAds
|
|
|
c.User.PrivateEmail = f.PrivateEmail
|
|
c.User.PrivateEmail = f.PrivateEmail
|
|
|
|
|
+ c.User.PrivateProfile = f.PrivateProfile
|
|
|
|
|
|
|
|
if err := models.UpdateUser(c.User); err != nil {
|
|
if err := models.UpdateUser(c.User); err != nil {
|
|
|
c.ServerError("UpdateUser", err)
|
|
c.ServerError("UpdateUser", err)
|