mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #22165 from overleaf/em-hide-upgrade-button
Hide upgrade button for AI add-on + Group/Commons users GitOrigin-RevId: 58cd522a1fa08f477fd6509f6d12a728309718d8
This commit is contained in:
@@ -420,7 +420,10 @@ async function getBestSubscription(user) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (individualSubscription && !individualSubscription.groupPlan) {
|
if (individualSubscription && !individualSubscription.groupPlan) {
|
||||||
if (isStandaloneAiAddOnPlanCode(individualSubscription.planCode)) {
|
if (
|
||||||
|
isStandaloneAiAddOnPlanCode(individualSubscription.planCode) &&
|
||||||
|
bestSubscription.type === 'free'
|
||||||
|
) {
|
||||||
bestSubscription = { type: 'standalone-ai-add-on' }
|
bestSubscription = { type: 'standalone-ai-add-on' }
|
||||||
} else {
|
} else {
|
||||||
const plan = PlansLocator.findLocalPlanInSettings(
|
const plan = PlansLocator.findLocalPlanInSettings(
|
||||||
|
|||||||
Reference in New Issue
Block a user