PluginProbe
Elementor Website Builder – more than just a page builder / 3.8.1
Elementor Website Builder – more than just a page builder v3.8.1
4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 All 453 releases
← All changes | app/modules/kit-library/data/kits/controller.php +2 -2 4.2.03.8.1 View file →
@@ -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 }