Node.js based forum software built for the modern web
feat: #11714, add registrationQueue flag
Barış Soner Uşaklı3080eb7e01c4
diff --git a/public/language/en-GB/pages.json b/public/language/en-GB/pages.jsonindex 3f1863fd32..aebfd7f1fb 100644--- a/public/language/en-GB/pages.json+++ b/public/language/en-GB/pages.json@@ -14,6 +14,7 @@"flagged-content": "Flagged Content","ip-blacklist": "IP Blacklist","post-queue": "Post Queue",+ "registration-queue": "Registration Queue","users/online": "Online Users","users/latest": "Latest Users",diff --git a/src/middleware/render.js b/src/middleware/render.jsindex 534849ec3f..71673b3052 100644--- a/src/middleware/render.js+++ b/src/middleware/render.js@@ -154,6 +154,7 @@ module.exports = function (middleware) {allowRegistration: registrationType === 'normal',searchEnabled: plugins.hooks.hasListeners('filter:search.query'),postQueueEnabled: !!meta.config.postQueue,+ registrationQueueEnabled: meta.config.registrationApprovalType !== 'normal' || (meta.config.registrationType === 'invite-only' || meta.config.registrationType === 'admin-invite-only'),config: res.locals.config,relative_path,bodyClass: options.bodyClass,