inc/rest/routes/ResponseRoutes.php
@@ -97,10 +97,10 @@ public function handleResponseActions(WP_REST_Request $request): WP_REST_Response { $data = $request->get_params(); $user_id = (int) ($data['user'] ?? 0); $user_id = get_current_user_id(); if (!$this->userCheck($user_id)) { return $this->unauthorized('User verification failed'); if (!$user_id) { return $this->unauthorized(); } $operation_id = $data['id'] ?? uniqid('response_');