| @@ -25,9 +25,9 @@ | ||
| 25 | 25 | public function get_item( $request ) { |
| 26 | 26 | $data = $this->get_repository()->find( $request->get_param( 'id' ) ); |
| 27 | 27 | |
| 28 | 28 | if ( ! $data ) { |
| 29 | - return new Error_404( esc_html__( 'Kit not exists.', 'elementor' ), 'kit_not_exists' ); | |
| 29 | + return new Error_404( __( 'Kit not exists.', 'elementor' ), 'kit_not_exists' ); | |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | return [ |
| 33 | 33 | 'data' => $data, |
| @@ -59,7 +59,7 @@ | ||
| 59 | 59 | $this->register_endpoint( new Endpoints\Favorites( $this ) ); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | public function get_permission_callback( $request ) { |
| 63 | - return current_user_can( 'manage_options' ); | |
| 63 | + return current_user_can( 'administrator' ); | |
| 64 | 64 | } |
| 65 | 65 | } |