summaryrefslogtreecommitdiffstats
path: root/client/components/settings/invitationCode.js
blob: fa3551798a5541d2e2731eaafa52f04da6bf112f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Template.invitationCode.onRendered(function() {
  Meteor.subscribe('setting', {
    onReady() {
      const setting = Settings.findOne();

      if (!setting || !setting.disableRegistration) {
        $('#invitationcode').hide();
      }

      return this.stop();
    },
  });
});