Skip to content

Commit 5d7b893

Browse files
Make isEnabledForDirectAccess enabled by default
1 parent 4c1188d commit 5d7b893

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

WooCommerce/src/main/kotlin/com/woocommerce/android/applicationpasswords/WooApplicationPasswordsConfiguration.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ class WooApplicationPasswordsConfiguration @Inject constructor() : ApplicationPa
1010
override val applicationName: String =
1111
"${BuildConfig.APPLICATION_ID}.app-client.${DeviceInfo.name.replace(' ', '-')}"
1212

13-
override fun isEnabledForDirectAccess(): Boolean = true
1413
override suspend fun isEnabledForJetpackAccess(): Boolean = APP_PASSWORDS_FOR_JETPACK_SITES.isEnabled()
1514
}

libs/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpapi/applicationpasswords/ApplicationPasswordsConfiguration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface ApplicationPasswordsConfiguration {
77
* Returns true if the Application Passwords feature is enabled for direct site access.
88
* This applies when sites are accessed using their URL directly (not through Jetpack).
99
*/
10-
fun isEnabledForDirectAccess(): Boolean
10+
fun isEnabledForDirectAccess(): Boolean = true
1111

1212
/**
1313
* Returns true if the Application Passwords feature is enabled for Jetpack-mediated access.

0 commit comments

Comments
 (0)