mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 22:50:46 +02:00
[web] migrate token access page to bs5 (#23474)
GitOrigin-RevId: 2a6c148aa52bfa109ba8a072ff7fb6dbd559ebb3
This commit is contained in:
@@ -20,6 +20,7 @@ import { getSafeAdminDomainRedirect } from '../Helpers/UrlHelper.js'
|
||||
import UserGetter from '../User/UserGetter.js'
|
||||
import Settings from '@overleaf/settings'
|
||||
import LimitationsManager from '../Subscription/LimitationsManager.js'
|
||||
import SplitTestHandler from '../SplitTests/SplitTestHandler.js'
|
||||
|
||||
const orderedPrivilegeLevels = [
|
||||
PrivilegeLevels.NONE,
|
||||
@@ -111,6 +112,13 @@ async function tokenAccessPage(req, res, next) {
|
||||
}
|
||||
}
|
||||
|
||||
// Populates splitTestVariants with a value for the split test name and allows
|
||||
// Pug to read it
|
||||
await SplitTestHandler.promises.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'misc-b2c-pages-bs5'
|
||||
)
|
||||
res.render('project/token/access-react', {
|
||||
postUrl: makePostUrl(token),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user