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