| @@ -4,10 +4,10 @@ | ||
| 4 | 4 | use WPCoder\Dashboard\SaveGlobal; |
| 5 | 5 | |
| 6 | 6 | defined( 'ABSPATH' ) || exit; |
| 7 | 7 | |
| 8 | -if ( ! current_user_can( 'unfiltered_html' ) ) { | |
| 9 | - wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpcoder' ) ); | |
| 8 | +if ( ! current_user_can( 'manage_options' ) ) { | |
| 9 | + wp_die( __( 'You do not have sufficient permissions to access this page.', 'wp-coder' ) ); | |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | |
| 13 | 13 | ?> |
| @@ -15,10 +15,10 @@ | ||
| 15 | 15 | <div class="wowp-header-wrapper"> |
| 16 | 16 | <?php DashboardInitializer::header(); ?> |
| 17 | 17 | |
| 18 | 18 | <div class="wowp-header-title"> |
| 19 | - <h2><?php esc_html_e( 'Global PHP', 'wpcoder' ); ?></h2> | |
| 19 | + <h2><?php esc_html_e( 'Global PHP', 'wp-coder' ); ?></h2> | |
| 20 | 20 | </div> |
| 21 | 21 | |
| 22 | 22 | </div> |
| 23 | 23 | |
| 24 | 24 | <?php SaveGlobal::init(); |