diff --git a/lib/views/admin/theme.js b/lib/views/admin/theme.js index 93c9a2c2..307a5d70 100644 --- a/lib/views/admin/theme.js +++ b/lib/views/admin/theme.js @@ -8,17 +8,17 @@ const extend = require('xtend') module.exports = function (req, res) { if (req.method === 'POST') { if (req.body.showModuleInteractions) { - config.set('showModuleInteractions', true) + config.set('showModuleInteractions', req.body.showModuleInteractions) } else { - config.set('showModuleInteractions', false) + config.set('showModuleInteractions', true) } if (req.body.removePublicEnabled) { - config.set('removePublicEnabled', true) + config.set('removePublicEnabled', req.body.removePublicEnabled) } else { - config.set('removePublicEnabled', false) + config.set('removePublicEnabled', true) } if (req.body.requireLogin) { - config.set('requireLogin', true) + config.set('requireLogin', req.body.requireLogin) } else { config.set('requireLogin', false) } @@ -47,6 +47,9 @@ function form (req, res) { frontPageText: config.get('frontPageText'), firstLaunch: config.get('firstLaunch'), altHome: config.get('altHome'), + showModuleInteractions: config.get('showModuleInteractions'), + removePublicEnabled: config.get('removePublicEnabled'), + requireLogin: config.get('requireLogin'), currentTheme: currentTheme, themeParameters: themeParameters }