mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Removes ability to bypass permission errors for non-recommended sources
This commit is contained in:
@@ -353,25 +353,6 @@ private extension VerifyAppOperation
|
||||
}
|
||||
}
|
||||
|
||||
// While in beta, allow users to temporarily bypass permissions alert
|
||||
// so source maintainers have time to update their sources.
|
||||
guard let presentingViewController = self.context.presentingViewController else { throw error }
|
||||
|
||||
let message = NSLocalizedString("While AltStore 2.0 is in beta, you may choose to ignore this warning at your own risk until the source is updated.", comment: "")
|
||||
|
||||
let ignoreAction = await UIAlertAction(title: NSLocalizedString("Install Anyway", comment: ""), style: .destructive)
|
||||
let viewPermissionsAction = await UIAlertAction(title: NSLocalizedString("View Permisions", comment: ""), style: .default)
|
||||
|
||||
while true
|
||||
{
|
||||
let action = try await presentingViewController.presentConfirmationAlert(title: error.errorFailureReason,
|
||||
message: message,
|
||||
actions: [ignoreAction, viewPermissionsAction])
|
||||
|
||||
guard action == viewPermissionsAction else { break } // break loop to continue with installation (unless we're viewing permissions).
|
||||
|
||||
await presentingViewController.presentAlert(title: NSLocalizedString("Undeclared Permissions", comment: ""), message: error.recoverySuggestion)
|
||||
}
|
||||
}
|
||||
|
||||
return localPermissions
|
||||
|
||||
Reference in New Issue
Block a user