Merge pull request #25060 from overleaf/mj-core-pug-bs5
[web] Convert various pug pages to BS5 GitOrigin-RevId: f42de89eca778db19d5faa8a19fa8a210c7a749b
This commit is contained in:
committed by
Copybot
parent
447be67f78
commit
d7bd665bee
@@ -16,6 +16,7 @@ import ProjectAuditLogHandler from '../Project/ProjectAuditLogHandler.js'
|
||||
import Errors from '../Errors/Errors.js'
|
||||
import AuthenticationController from '../Authentication/AuthenticationController.js'
|
||||
import PrivilegeLevels from '../Authorization/PrivilegeLevels.js'
|
||||
import SplitTestHandler from '../SplitTests/SplitTestHandler.js'
|
||||
|
||||
// This rate limiter allows a different number of requests depending on the
|
||||
// number of callaborators a user is allowed. This is implemented by providing
|
||||
@@ -244,6 +245,10 @@ async function generateNewInvite(req, res) {
|
||||
async function viewInvite(req, res) {
|
||||
const projectId = req.params.Project_id
|
||||
const { token } = req.params
|
||||
|
||||
// Read split test assignment so that it's available for Pug to read
|
||||
await SplitTestHandler.promises.getAssignment(req, res, 'core-pug-bs5')
|
||||
|
||||
const _renderInvalidPage = function () {
|
||||
res.status(404)
|
||||
logger.debug({ projectId }, 'invite not valid, rendering not-valid page')
|
||||
|
||||
Reference in New Issue
Block a user