Changeset 68b27a4 in Klonkt for src/routes/shows.js
- Timestamp:
- 06/20/2026 07:28:43 AM (3 months ago)
- Branches:
- main
- Children:
- 0fcc09c
- Parents:
- d7b5a6c
- File:
-
- 1 edited
-
src/routes/shows.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/shows.js
rd7b5a6c r68b27a4 16 16 import { mailerConfigured, sendMail } from '../config/mailer.js'; 17 17 import { addSubscriber } from '../services/SubscriberService.js'; 18 import { getSetting } from '../services/SettingsService.js'; 18 19 19 20 const router = express.Router(); 21 22 // Agenda is opt-in: pas bereikbaar als de beheerder 'm heeft ingeschakeld. 23 function agendaOn() { return getSetting('agenda_enabled') === '1'; } 20 24 21 25 function esc(s) { return String(s || '').replace(/[&<>"]/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c])); } … … 30 34 31 35 router.get('/shows', (req, res, next) => { 32 if (!premiumUnlocked() ) return next();36 if (!premiumUnlocked() || !agendaOn()) return next(); 33 37 const site = res.locals.site; 34 38 if (!site) return next(); … … 42 46 43 47 router.post('/shows/notify', async (req, res, next) => { 44 if (!premiumUnlocked() ) return next();48 if (!premiumUnlocked() || !agendaOn()) return next(); 45 49 const site = res.locals.site; 46 50 if (!site) return next();
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)