mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-16 10:13:27 +01:00
Merge branch 'sources_tab'
# Conflicts: # AltStore.xcodeproj/project.pbxproj
This commit is contained in:
@@ -96,11 +96,11 @@ class VerifyAppOperation: ResultOperation<Void>
|
||||
throw error
|
||||
#endif
|
||||
|
||||
if let trustedSources = UserDefaults.shared.trustedSources, let sourceID = await self.context.$appVersion.sourceID
|
||||
if let recommendedSources = UserDefaults.shared.recommendedSources, let sourceID = await self.context.$appVersion.sourceID
|
||||
{
|
||||
let isTrusted = trustedSources.contains { $0.identifier == sourceID }
|
||||
guard !isTrusted else {
|
||||
// Don't enforce permission checking for Trusted Sources while 2.0 is in beta.
|
||||
let isRecommended = recommendedSources.contains { $0.identifier == sourceID }
|
||||
guard !isRecommended else {
|
||||
// Don't enforce permission checking for Recommended Sources while 2.0 is in beta.
|
||||
return self.finish(.success(()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user