removing Utils.getCurrentSetting() and use ReactiveCache directly

This commit is contained in:
Martin Filser 2023-07-20 21:08:39 +02:00
parent a8c071f04c
commit 875442f1ce
8 changed files with 17 additions and 17 deletions

View file

@ -1,7 +1,9 @@
import { ReactiveCache } from '/imports/reactiveCache';
Template.invitationCode.onRendered(function() {
Meteor.subscribe('setting', {
onReady() {
const setting = Utils.getCurrentSetting();
const setting = ReactiveCache.getCurrentSetting();
if (!setting || !setting.disableRegistration) {
$('#invitationcode').hide();