PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.17
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.17
1.10.27 1.10.26 1.10.25 1.10.24 1.10.23 1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 All 171 releases
← All changes | includes/API/V1/Auth.php +7 -1 1.10.18 → 1.10.17 View file →
@@ -446,12 +446,18 @@
446 446 *
447 447 * @return WP_REST_Response
448 448 */
449 449 public function get_all_users_sessions( WP_REST_Request $request ): WP_REST_Response {
450 + global $wpdb;
451 +
450 452 $auth_service = AuthService::instance();
451 453
452 454 // Get all users who have refresh tokens.
453 - $user_ids = $auth_service->sessions()->users_with_sessions();
455 + $user_ids = $wpdb->get_col(
456 + "SELECT DISTINCT user_id
457 + FROM {$wpdb->usermeta}
458 + WHERE meta_key = '_woocommerce_pos_refresh_tokens'"
459 + );
454 460
455 461 $users_data = array();
456 462
457 463 // Get current JTI if available from the request token.