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

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

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