feat: #11714, add registrationQueue flag

This commit is contained in:
Barış Soner Uşaklı
2023-06-15 09:13:04 -04:00
parent 73c808683f
commit 3080eb7e01
2 changed files with 2 additions and 0 deletions

View File

@@ -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",

View File

@@ -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,