mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
fix: Allow non-paid Apple Developers to download
This commit is contained in:
parent
22c390b666
commit
e8fd83032b
1 changed files with 6 additions and 3 deletions
|
|
@ -151,9 +151,12 @@ public class Client {
|
|||
.map(\.data)
|
||||
.decode(type: AppleSession.self, decoder: JSONDecoder())
|
||||
.tryMap { session in
|
||||
if session.provider == nil {
|
||||
throw AuthenticationError.notDeveloperAppleId
|
||||
}
|
||||
// A user that is a non-paid Apple Developer will have a provider == nil
|
||||
// Those users can still download Xcode.
|
||||
// Non Apple Developers will get caught in the download as invalid
|
||||
// if session.provider == nil {
|
||||
// throw AuthenticationError.notDeveloperAppleId
|
||||
// }
|
||||
}
|
||||
.eraseToAnyPublisher()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue