diff --git a/AltServer/Devices/ALTDeviceManager+Installation.swift b/AltServer/Devices/ALTDeviceManager+Installation.swift index 064c35d0e..16207201f 100644 --- a/AltServer/Devices/ALTDeviceManager+Installation.swift +++ b/AltServer/Devices/ALTDeviceManager+Installation.swift @@ -322,6 +322,10 @@ private extension ALTDeviceManager { return completionHandler(.success(team)) } + else if let team = teams.first(where: { $0.type == .organization }) + { + return completionHandler(.success(team)) + } else if let team = teams.first(where: { $0.type == .free }) { return completionHandler(.success(team)) diff --git a/AltStore/Operations/AuthenticationOperation.swift b/AltStore/Operations/AuthenticationOperation.swift index 6c717ea98..eb860268e 100644 --- a/AltStore/Operations/AuthenticationOperation.swift +++ b/AltStore/Operations/AuthenticationOperation.swift @@ -436,6 +436,10 @@ private extension AuthenticationOperation { return completionHandler(.success(team)) } + else if let team = teams.first(where: { $0.type == .organization }) + { + return completionHandler(.success(team)) + } else if let team = teams.first(where: { $0.type == .free }) { return completionHandler(.success(team))