mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-07 08:22:07 +00:00
Disable providers and features in beta
This commit is contained in:
parent
54c9ca671a
commit
cc8c01a13a
@ -156,10 +156,16 @@ public class ProductManager: NSObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func isEligible(forFeature feature: Product) -> Bool {
|
public func isEligible(forFeature feature: Product) -> Bool {
|
||||||
|
guard !isBeta else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return isFullVersion() || purchasedFeatures.contains(feature)
|
return isFullVersion() || purchasedFeatures.contains(feature)
|
||||||
}
|
}
|
||||||
|
|
||||||
public func isEligible(forProvider metadata: Infrastructure.Metadata) -> Bool {
|
public func isEligible(forProvider metadata: Infrastructure.Metadata) -> Bool {
|
||||||
|
guard !isBeta else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return isFullVersion() || purchasedFeatures.contains(metadata.product)
|
return isFullVersion() || purchasedFeatures.contains(metadata.product)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user