summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/ConfigUserService.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-06-05 10:24:39 -0400
committerJames Moger <james.moger@gitblit.com>2014-06-05 10:24:39 -0400
commitafbaebde11093fae8b420aaaf71dcd56d8c0f9fd (patch)
treefe1d739b9e723ca0f95f12af2511e613412c8a2f /src/main/java/com/gitblit/ConfigUserService.java
parent74221eb302e782ef23777d5c3f0a649ceb321c1e (diff)
downloadgitblit-afbaebde11093fae8b420aaaf71dcd56d8c0f9fd.tar.gz
gitblit-afbaebde11093fae8b420aaaf71dcd56d8c0f9fd.zip
Add "email me on my ticket changes" preference
Diffstat (limited to 'src/main/java/com/gitblit/ConfigUserService.java')
-rw-r--r--src/main/java/com/gitblit/ConfigUserService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/ConfigUserService.java b/src/main/java/com/gitblit/ConfigUserService.java
index b5dfde3b..9759eff7 100644
--- a/src/main/java/com/gitblit/ConfigUserService.java
+++ b/src/main/java/com/gitblit/ConfigUserService.java
@@ -96,6 +96,8 @@ public class ConfigUserService implements IUserService {
private static final String LOCALE = "locale";
+ private static final String EMAILONMYTICKETCHANGES = "emailMeOnMyTicketChanges";
+
private static final String ACCOUNTTYPE = "accountType";
private static final String DISABLED = "disabled";
@@ -711,6 +713,7 @@ public class ConfigUserService implements IUserService {
String val = model.getPreferences().getLocale().getLanguage() + "_" + model.getPreferences().getLocale().getCountry();
config.setString(USER, model.username, LOCALE, val);
}
+ config.setBoolean(USER, model.username, EMAILONMYTICKETCHANGES, model.getPreferences().isEmailMeOnMyTicketChanges());
}
// user roles
@@ -887,6 +890,7 @@ public class ConfigUserService implements IUserService {
// preferences
user.getPreferences().setLocale(config.getString(USER, username, LOCALE));
+ user.getPreferences().setEmailMeOnMyTicketChanges(config.getBoolean(USER, username, EMAILONMYTICKETCHANGES, true));
// user roles
Set<String> roles = new HashSet<String>(Arrays.asList(config.getStringList(