| @@ -99,10 +99,20 @@ | ||
| 99 | 99 | |
| 100 | 100 | return $boardId; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + /** | |
| 104 | + * Returns the timesheet report for accessible boards when Pro is active. | |
| 105 | + */ | |
| 103 | 106 | public function getTimeSheetReport(Request $request) |
| 104 | 107 | { |
| 108 | + if (!defined('FLUENT_BOARDS_PRO_VERSION')) { | |
| 109 | + return $this->sendError( | |
| 110 | + esc_html__('This is a pro feature', 'fluent-boards'), | |
| 111 | + 403 | |
| 112 | + ); | |
| 113 | + } | |
| 114 | + | |
| 105 | 115 | // Sanitize date inputs - validate they are valid date strings |
| 106 | 116 | $startDate = $request->getSafe('start_date', 'sanitize_text_field'); |
| 107 | 117 | $endDate = $request->getSafe('end_date', 'sanitize_text_field'); |
| 108 | 118 | |