Ignore expired devices when checking for GV1->GV2 migration capability.

This commit is contained in:
Jon Chambers
2021-01-29 17:24:51 -05:00
committed by Jon Chambers
parent a4cd30451c
commit 8f94ed68a3
2 changed files with 9 additions and 2 deletions

View File

@@ -139,7 +139,9 @@ public class Account implements Principal {
}
public boolean isGv1MigrationSupported() {
return devices.stream().allMatch(device -> device.getCapabilities() != null && device.getCapabilities().isGv1Migration());
return devices.stream()
.filter(Device::isEnabled)
.allMatch(device -> device.getCapabilities() != null && device.getCapabilities().isGv1Migration());
}
public boolean isEnabled() {