| @@ -34,12 +34,8 @@ | ||
| 34 | 34 | * Add the task routes to the REST API. |
| 35 | 35 | */ |
| 36 | 36 | public function addRoutes(array $routes): array |
| 37 | 37 | { |
| 38 | - if ($this->adminAccessAllowed() === false) { | |
| 39 | - return $routes; | |
| 40 | - } | |
| 41 | - | |
| 42 | 38 | $routeParameters = [ |
| 43 | 39 | 'methods' => \WP_REST_Server::READABLE . ', ' . \WP_REST_Server::EDITABLE, |
| 44 | 40 | 'callback' => [$this, 'callback'], |
| 45 | 41 | ]; |