summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-05-01 20:00:50 +0300
committerLauri Ojansivu <x@xet7.org>2018-05-01 20:00:50 +0300
commitc4b898633e1c959f51815ee93a354a093f1139b6 (patch)
treeac68f1d19145b43f9b65fb0edc2b6d7b72f2604a
parentcfa3c4bfcba3168f47cba74ffe14030682dd4da5 (diff)
downloadwekan-c4b898633e1c959f51815ee93a354a093f1139b6.tar.gz
wekan-c4b898633e1c959f51815ee93a354a093f1139b6.tar.bz2
wekan-c4b898633e1c959f51815ee93a354a093f1139b6.zip
Try to fix: Users who register with an invitation code can't see lists/cards.
Please test. Thanks to andresmanelli ! Related #1610
-rw-r--r--models/users.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/users.js b/models/users.js
index 20331a98..0093f7cb 100644
--- a/models/users.js
+++ b/models/users.js
@@ -495,6 +495,7 @@ if (Meteor.isServer) {
throw new Meteor.Error('error-invitation-code-not-exist', 'The invitation code doesn\'t exist');
} else {
user.profile = {icode: options.profile.invitationcode};
+ user.profile.boardView = 'board-view-lists';
}
return user;