Skip to content

Commit

Permalink
SAK-27580 added configuration variable 'wSetup.sendSiteNotificationEm…
Browse files Browse the repository at this point in the history
…ail' to control site notification email generation

git-svn-id: https://source.sakaiproject.org/svn/site-manage/trunk@311198 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
zqian committed Jul 28, 2014
1 parent 154adb1 commit 7a06944
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6928,7 +6928,9 @@ private void sendSiteNotification(SessionState state, Site site, List notifySite
// get the request email from configuration
String requestEmail = getSetupRequestEmailAddress();
User currentUser = UserDirectoryService.getCurrentUser();
if (requestEmail != null && currentUser != null) {
// read from configuration whether to send out site notification emails, which defaults to be true
boolean sendSiteNotificationChoice = ServerConfigurationService.getBoolean("wSetup.sendSiteNotificationEmail", true);
if (requestEmail != null && currentUser != null && sendSiteNotificationChoice) {
userNotificationProvider.notifySiteCreation(site, notifySites, courseSite, term_name, requestEmail);
} // if

Expand Down

0 comments on commit 7a06944

Please sign in to comment.