← All changes
|
app/Features/TaskManagement/TaskManagementEndpoints.php
+0
-4
2.0.2
→
2.1.1
View file →
| @@ -33,12 +33,8 @@ | ||
| 33 | 33 | * Add the task routes to the REST API. |
| 34 | 34 | */ |
| 35 | 35 | public function addTaskRoutes(array $routes): array |
| 36 | 36 | { |
| 37 | - if ($this->adminAccessAllowed() === false) { | |
| 38 | - return $routes; | |
| 39 | - } | |
| 40 | - | |
| 41 | 37 | $routes['get_tasks'] = [ |
| 42 | 38 | 'methods' => \WP_REST_Server::READABLE, |
| 43 | 39 | 'callback' => [$this, 'getTasksCallback'], |
| 44 | 40 | ]; |