mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Revert "Revert "Adding More Ai Quota Tiers"" (#32433)
* Revert "Revert "Adding More Ai Quota Tiers (#32128)" (#32431)" This reverts commit f0ea19b418da6096c84b42024aea643807347649. * fix: dont block workbench from users who have access via WF * fix: simplify workbench access rules and ensure wf premium users can use workbench GitOrigin-RevId: 7927248eadd906d7f802d55fa5c6bc7df162b141
This commit is contained in:
committed by
Copybot
parent
c94d649879
commit
72b7524094
@@ -962,8 +962,12 @@ const _ProjectController = {
|
||||
symbolPaletteAvailable: Features.hasFeature('symbol-palette'),
|
||||
userRestrictions: Array.from(req.userRestrictions || []),
|
||||
showAiFeatures,
|
||||
onAiFreeTrial:
|
||||
fullFeatureSet?.aiUsageQuota === Settings.aiFeatures?.freeTrialQuota,
|
||||
// default to free tier if they dont have a quota
|
||||
hasAiFreeTier:
|
||||
fullFeatureSet?.aiUsageQuota === Settings.aiFeatures?.freeQuota ||
|
||||
!fullFeatureSet?.aiUsageQuota,
|
||||
hasUnlimitedAi:
|
||||
fullFeatureSet?.aiUsageQuota === Settings.aiFeatures?.unlimitedQuota,
|
||||
detachRole,
|
||||
metadata: { viewport: false },
|
||||
showUpgradePrompt,
|
||||
|
||||
Reference in New Issue
Block a user