← All changes
|
includes/Admin/FinancialManagement/FinancialManagementHistory.php
+5
-0
1.10.22
→
1.10.23
View file →
| @@ -178,8 +178,13 @@ | ||
| 178 | 178 | |
| 179 | 179 | $activePage = isset($_POST['active_page']) ? max(1, absint(wp_unslash($_POST['active_page']))) : 1; |
| 180 | 180 | $historyPage = isset($_POST['history_page']) ? max(1, absint(wp_unslash($_POST['history_page']))) : 1; |
| 181 | 181 | $viewData = self::buildViewData($activePage, $historyPage); |
| 182 | + if ((int) ($viewData['historyResult']['status_code'] ?? 0) === 403) { | |
| 183 | + wp_send_json_error([ | |
| 184 | + 'message' => 'برای دریافت صحیح اطلاعات، مجدداً احراز هویت را انجام دهید.', | |
| 185 | + ], 403); | |
| 186 | + } | |
| 182 | 187 | $currentPage = max(1, (int) ($viewData['historyData']['current_page'] ?? $historyPage)); |
| 183 | 188 | |
| 184 | 189 | wp_send_json_success([ |
| 185 | 190 | 'html' => self::render($viewData), |