diff --git a/_inc/lib/admin-pages/class.jetpack-admin-page.php b/_inc/lib/admin-pages/class.jetpack-admin-page.php index 7c142008b09c2..38aad2a43156c 100644 --- a/_inc/lib/admin-pages/class.jetpack-admin-page.php +++ b/_inc/lib/admin-pages/class.jetpack-admin-page.php @@ -26,9 +26,13 @@ function __construct() { } function add_actions() { - /** - * Don't add in the modules page unless modules are available! - */ + + // If user is not an admin and site is in Dev Mode, don't do anything + if ( ! current_user_can( 'manage_options' ) && Jetpack::is_development_mode() ) { + return; + } + + // Don't add in the modules page unless modules are available! if ( $this->dont_show_if_not_active && ! Jetpack::is_active() && ! Jetpack::is_development_mode() ) { return; }