We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8979b80 commit 5fd498aCopy full SHA for 5fd498a
WooCommerce/Classes/ViewRelated/JetpackSetup/JetpackSetupCoordinator.swift
@@ -320,12 +320,7 @@ private extension JetpackSetupCoordinator {
320
321
@MainActor
322
func fetchJetpackConnectionData() async throws -> JetpackConnectionData {
323
- /// Jetpack setup will fail anyway without admin role, so check that first.
324
- let roles = stores.sessionManager.defaultRoles
325
- guard roles.contains(.administrator) else {
326
- throw JetpackCheckError.missingPermission
327
- }
328
- return try await withCheckedThrowingContinuation { continuation in
+ try await withCheckedThrowingContinuation { continuation in
329
let action = JetpackConnectionAction.fetchJetpackConnectionData { result in
330
continuation.resume(with: result)
331
}
0 commit comments