@@ -16,7 +16,8 @@ import { ContextKeys, CoreGitConfiguration, GlyphChars, Schemes } from '../const
16
16
import type { Container } from '../container' ;
17
17
import { setContext } from '../context' ;
18
18
import { AccessDeniedError , ProviderNotFoundError } from '../errors' ;
19
- import type { FeatureAccess , Features , PlusFeatures } from '../features' ;
19
+ import type { FeatureAccess , Features } from '../features' ;
20
+ import { PlusFeatures } from '../features' ;
20
21
import { Logger } from '../logger' ;
21
22
import type { SubscriptionChangeEvent } from '../plus/subscription/subscriptionService' ;
22
23
import type { RepoComparisonKey } from '../repositories' ;
@@ -552,18 +553,32 @@ export class GitProviderService implements Disposable {
552
553
if ( visibility !== RepositoryVisibility . Private ) {
553
554
switch ( plan ) {
554
555
case SubscriptionPlanId . Free :
556
+ if ( feature === PlusFeatures . Graph ) {
557
+ return {
558
+ allowed : true ,
559
+ subscription : { current : subscription } ,
560
+ visibility : visibility ,
561
+ } ;
562
+ }
563
+
555
564
return {
556
565
allowed : false ,
557
566
subscription : { current : subscription , required : SubscriptionPlanId . FreePlus } ,
567
+ visibility : visibility ,
558
568
} ;
559
569
case SubscriptionPlanId . FreePlus :
560
- return { allowed : true , subscription : { current : subscription } } ;
570
+ return {
571
+ allowed : true ,
572
+ subscription : { current : subscription } ,
573
+ visibility : visibility ,
574
+ } ;
561
575
}
562
576
}
563
577
564
578
return {
565
579
allowed : false ,
566
580
subscription : { current : subscription , required : SubscriptionPlanId . Pro } ,
581
+ visibility : visibility ,
567
582
} ;
568
583
} ) ;
569
584
0 commit comments