summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-05-08 01:31:01 +0300
committerGitHub <noreply@github.com>2018-05-08 01:31:01 +0300
commit0b9328a1be6e1b9b9826d4a0ea987d43cb3d4dbb (patch)
treedb7df8f34e82d313e33f60094c81fb860e9e9ec2 /models
parentfc033c30e63f03fb55479892b2c5c75cee30e509 (diff)
parentc43508cacbd64357409a3de114db9dab2ae59a9d (diff)
downloadwekan-0b9328a1be6e1b9b9826d4a0ea987d43cb3d4dbb.tar.gz
wekan-0b9328a1be6e1b9b9826d4a0ea987d43cb3d4dbb.tar.bz2
wekan-0b9328a1be6e1b9b9826d4a0ea987d43cb3d4dbb.zip
Merge pull request #1627 from thiagofernando/devel
Includes possibility to block username change
Diffstat (limited to 'models')
-rw-r--r--models/accountSettings.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/models/accountSettings.js b/models/accountSettings.js
index db4087c0..6dfbac5d 100644
--- a/models/accountSettings.js
+++ b/models/accountSettings.js
@@ -23,11 +23,17 @@ AccountSettings.allow({
if (Meteor.isServer) {
Meteor.startup(() => {
- AccountSettings.upsert({ _id: 'accounts-allowEmailChange' }, {
+ AccountSettings.upsert({_id: 'accounts-allowEmailChange'}, {
$setOnInsert: {
booleanValue: false,
sort: 0,
},
});
+ AccountSettings.upsert({_id: 'accounts-allowUserNameChange'}, {
+ $setOnInsert: {
+ booleanValue: false,
+ sort: 1,
+ },
+ });
});
}