mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-31 04:52:05 +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 {
|
||||
guard !isBeta else {
|
||||
return false
|
||||
}
|
||||
return isFullVersion() || purchasedFeatures.contains(feature)
|
||||
}
|
||||
|
||||
public func isEligible(forProvider metadata: Infrastructure.Metadata) -> Bool {
|
||||
guard !isBeta else {
|
||||
return false
|
||||
}
|
||||
return isFullVersion() || purchasedFeatures.contains(metadata.product)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user