← All changes
|
includes/template-library/data/controller.php
+0
-6
4.3.0-beta3
→
3.5.0-beta1
View file →
| @@ -1,9 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Includes\TemplateLibrary\Data; |
| 3 | 3 | |
| 4 | -use Elementor\User; | |
| 5 | -use Elementor\TemplateLibrary\Source_Local; | |
| 6 | 4 | use Elementor\Data\V2\Base\Controller as Controller_Base; |
| 7 | 5 | |
| 8 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | 7 | exit; // Exit if accessed directly. |
| @@ -20,10 +18,6 @@ | ||
| 20 | 18 | } |
| 21 | 19 | |
| 22 | 20 | protected function register_index_endpoint() { |
| 23 | 21 | // Bypass, currently does not required. |
| 24 | - } | |
| 25 | - | |
| 26 | - public function get_permission_callback( $request ) { | |
| 27 | - return User::is_current_user_can_edit_post_type( Source_Local::CPT ); | |
| 28 | 22 | } |
| 29 | 23 | } |