| @@ -137,8 +137,12 @@ | ||
| 137 | 137 | |
| 138 | 138 | remove_filter( 'terms_clauses', [ $this, 'customize_terms_query' ], $priority, $accepted_args ); |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | + protected function permission_check( \WP_REST_Request $request ): bool { | |
| 142 | + return current_user_can( 'edit_posts' ); | |
| 143 | + } | |
| 144 | + | |
| 141 | 145 | /** |
| 142 | 146 | * @return array |
| 143 | 147 | */ |
| 144 | 148 | protected function get_endpoint_registration_args(): array { |