mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #35257 from overleaf/bg-png2pdf-premium
limit png2pdf to priority compiles GitOrigin-RevId: a2b394efe6056ccbc6963d922f3e8b385645167b
This commit is contained in:
@@ -87,6 +87,7 @@ const updateProjectSettingsSchema = z.object({
|
||||
body: z.object({
|
||||
compiler: z.string().optional(),
|
||||
imageName: z.string().optional(),
|
||||
png2pdf: z.boolean().optional(),
|
||||
mainBibliographyDocId: zz.objectId().optional(),
|
||||
name: z.string().optional(),
|
||||
rootDocId: zz.objectId().optional(),
|
||||
@@ -117,6 +118,10 @@ const _ProjectController = {
|
||||
await EditorController.promises.setImageName(projectId, body.imageName)
|
||||
}
|
||||
|
||||
if (body.png2pdf != null) {
|
||||
await EditorController.promises.setPng2pdf(projectId, body.png2pdf)
|
||||
}
|
||||
|
||||
if (body.name != null) {
|
||||
await EditorController.promises.renameProject(projectId, body.name)
|
||||
}
|
||||
@@ -576,6 +581,7 @@ const _ProjectController = {
|
||||
track_changes: 1,
|
||||
owner_ref: 1,
|
||||
brandVariationId: 1,
|
||||
png2pdf: 1,
|
||||
overleaf: 1,
|
||||
tokens: 1,
|
||||
}),
|
||||
@@ -975,6 +981,10 @@ const _ProjectController = {
|
||||
canUseClsiCache:
|
||||
Features.hasFeature('saas') &&
|
||||
ownerFeatures?.compileGroup === 'priority',
|
||||
canUsePng2Pdf:
|
||||
Features.hasFeature('saas') &&
|
||||
ownerFeatures?.compileGroup === 'priority' &&
|
||||
splitTestAssignments['png2pdf']?.variant === 'enabled',
|
||||
user: {
|
||||
id: userId,
|
||||
email: user.email,
|
||||
|
||||
Reference in New Issue
Block a user