mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02: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 (isStandaloneAiAddOnPlanCode(individualSubscription.planCode)) {
|
||||
if (
|
||||
isStandaloneAiAddOnPlanCode(individualSubscription.planCode) &&
|
||||
bestSubscription.type === 'free'
|
||||
) {
|
||||
bestSubscription = { type: 'standalone-ai-add-on' }
|
||||
} else {
|
||||
const plan = PlansLocator.findLocalPlanInSettings(
|
||||
|
||||
Reference in New Issue
Block a user