PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 2.2.2
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v2.2.2
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | includes/API/SavedTemplates.php +0 -6 3.6.72.2.2 View file →
@@ -21,14 +21,8 @@
21 21 private $endpoint = 'saved-templates';
22 22
23 23 public function permission_check( WP_REST_Request $request ) {
24 24 $this->request = $request;
25 - $_route = $request->get_route();
26 - $_id = (int) $this->get_param( 'id', 0 );
27 -
28 - if( $_route === "/templately/v1/saved-templates/delete" && ! (current_user_can( 'delete_post', $_id ) && get_post_type($_id) === "elementor_library")) {
29 - return $this->error('invalid_permission', __( 'Sorry, you do not have permission to delete this template.', 'templately' ), 'saved-templates/delete', 403 );
30 - }
31 25 return true;
32 26 }
33 27
34 28 public function register_routes() {