Commit e67aad37 authored by dev's avatar dev
Browse files

Lock option page for users thant can't manage options

As explained in the add_options_page documentation
parent 56b67f16
......@@ -41,6 +41,9 @@ class Menu {
}
public function settings_page() {
if ( ! current_user_can( 'manage_options' ) ) {
wp_die();
}
?>
<div class="wrap">
<h2><?php _e( 'IMCPress options', 'imcpress' ); ?></h2>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment