| @@ -21,14 +21,14 @@ | ||
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - public function can_access_options() { | |
| 26 | - return current_user_can( 'manage_options' ); | |
| 25 | + public function can_access_settings() { | |
| 26 | + return apply_filters( 'mgl_allow_setup', current_user_can( 'manage_options' ) ); | |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | public function can_access_features() { |
| 30 | - return current_user_can( 'upload_files' ); | |
| 30 | + return apply_filters( 'mgl_allow_usage', current_user_can( 'upload_files' ) ); | |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | // Use by the Gutenberg block |
| 34 | 34 | |