summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorNicu Tofan <nicu.tofan@gmail.com>2018-06-27 15:30:52 +0300
committerNicu Tofan <nicu.tofan@gmail.com>2018-06-27 15:30:52 +0300
commitd23ac2b385d777f6ea22cb0c78557a75ee0018b1 (patch)
tree43409f5c0506ab3d1108b64c64a81b3ac29bea46 /client/components
parent766b58d91b7a76738ee7c95da2522ef62de866b1 (diff)
downloadwekan-d23ac2b385d777f6ea22cb0c78557a75ee0018b1.tar.gz
wekan-d23ac2b385d777f6ea22cb0c78557a75ee0018b1.tar.bz2
wekan-d23ac2b385d777f6ea22cb0c78557a75ee0018b1.zip
Restore invitation code logic
Diffstat (limited to 'client/components')
-rw-r--r--client/components/settings/invitationCode.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/settings/invitationCode.js b/client/components/settings/invitationCode.js
index c02f860f..a403d8ab 100644
--- a/client/components/settings/invitationCode.js
+++ b/client/components/settings/invitationCode.js
@@ -1,6 +1,6 @@
Template.invitationCode.onRendered(() => {
const setting = Settings.findOne();
- if (setting || setting.disableRegistration) {
+ if (!setting || !setting.disableRegistration) {
$('#invitationcode').hide();
}
});