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 f499102 commit fae9bebCopy full SHA for fae9beb
WooCommerce/Classes/ViewRelated/Products/Edit Product/ProductFormRemoteActionUseCase.swift
@@ -240,8 +240,9 @@ private extension ProductFormRemoteActionUseCase {
240
func updatePasswordRemotely(product: EditableProductModel,
241
password: String?,
242
onCompletion: @escaping (Result<String?, Error>) -> Void) {
243
- // Only update product password if available.
244
- guard let updatedPassword = password else {
+ // Only update product password if available and user is authenticated with WPCom.
+ guard let updatedPassword = password,
245
+ stores.isAuthenticatedWithoutWPCom == false else {
246
onCompletion(.success(password))
247
return
248
}
0 commit comments