import Settings from '/models/settings'; Settings.allow({ async update(userId) { const user = await Meteor.users.findOneAsync(userId); return user && user.isAdmin; }, });