Allow full version in beta via scheme
Beta was restricted even in development.
This commit is contained in:
parent
81bc2a7ebd
commit
17e3ce9540
|
@ -160,15 +160,19 @@ public class ProductManager: NSObject {
|
|||
}
|
||||
|
||||
public func isEligible(forFeature feature: Product) throws -> Bool {
|
||||
guard !isBeta else {
|
||||
throw ProductError.beta
|
||||
if isBeta {
|
||||
guard cfg.isBetaFullVersion else {
|
||||
throw ProductError.beta
|
||||
}
|
||||
}
|
||||
return isFullVersion() || purchasedFeatures.contains(feature)
|
||||
}
|
||||
|
||||
public func isEligible(forProvider metadata: Infrastructure.Metadata) throws -> Bool {
|
||||
guard !isBeta else {
|
||||
throw ProductError.beta
|
||||
if isBeta {
|
||||
guard cfg.isBetaFullVersion else {
|
||||
throw ProductError.beta
|
||||
}
|
||||
}
|
||||
return isFullVersion() || purchasedFeatures.contains(metadata.product)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue