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