Browse Source

add isMailPublishedForNewUser

Shun Miyazawa 5 years ago
parent
commit
b2504fd736
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/server/models/user.js

+ 1 - 0
src/server/models/user.js

@@ -268,6 +268,7 @@ module.exports = function(crowi) {
     this.name = name;
     this.username = username;
     this.status = STATUS_ACTIVE;
+    this.isEmailPublished = crowi.configManager.getConfig('crowi', 'customize:isEmailPublishedForNewUser');
 
     this.save((err, userData) => {
       userEvent.emit('activated', userData);