mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
refactor: #12623, add filter:config.get.admin
to add admin only config values add /api/admin/config to retrieve config object with admin values included
This commit is contained in:
@@ -67,7 +67,6 @@ apiController.loadConfig = async function (req) {
|
||||
userLang: req.query.lang ? validator.escape(String(req.query.lang)) : (meta.config.defaultLang || 'en-GB'),
|
||||
loggedIn: !!req.user,
|
||||
uid: req.uid,
|
||||
isACP: !!(req.res && req.res.locals && req.res.locals.renderAdminHeader),
|
||||
'cache-buster': meta.config['cache-buster'] || '',
|
||||
topicPostSort: meta.config.topicPostSort || 'oldest_to_newest',
|
||||
categoryTopicSort: meta.config.categoryTopicSort || 'recently_replied',
|
||||
|
||||
Reference in New Issue
Block a user