| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | use Elementor\Controls_Stack; |
| 7 | 7 | use Elementor\Plugin; |
| 8 | 8 | |
| 9 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | - exit; // Exit if accessed directly. | |
| 10 | + exit; // Exit if accessed directly | |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | class Module extends \Elementor\Core\Base\Module { |
| 14 | 14 | |
| @@ -101,9 +101,9 @@ | ||
| 101 | 101 | * |
| 102 | 102 | * @return void |
| 103 | 103 | */ |
| 104 | 104 | protected function add_page_convert_button( Controls_Stack $controls_stack ) { |
| 105 | - if ( ! Plugin::$instance->editor->is_edit_mode() || ! $this->page_contains_sections( $controls_stack ) || ! Plugin::$instance->role_manager->user_can( 'design' ) ) { | |
| 105 | + if ( ! Plugin::$instance->editor->is_edit_mode() || ! $this->page_contains_sections( $controls_stack ) ) { | |
| 106 | 106 | return; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | $controls_stack->start_injection( [ |