PINs should be enabled for anyone who sets up a PIN in KBS, regardless of the FF settings.

This commit is contained in:
Nora Trapp 2020-04-22 13:00:25 -07:00 committed by Matthew Chen
parent ce0f809fe3
commit cc4b3f58e0

View File

@ -21,6 +21,8 @@ public class RemoteConfig: NSObject {
// If we've turned off the KBS feature we don't want to present the
// pins for everyone migration even if this user is in the bucket.
guard kbs else { return false }
// If you've setup a PIN, you have a PIN, regardless of the FF status
if KeyBackupService.hasMasterKey { return true }
return isEnabled(.pinsForEveryone) || isEnabled(.pinsForEveryoneV2)
}