Skip to content

Commit ed781b1

Browse files
committed
install_plugins permissions check for connection banner.
Signed-off-by: Kev Provance <[email protected]>
1 parent 83d1bcf commit ed781b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

redux-core/inc/classes/class-redux-connection-banner.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,15 @@ public function maybe_initialize_hooks( $current_screen ) {
291291
return;
292292
}
293293

294+
if ( ! current_user_can( 'install_plugins' ) ) {
295+
return;
296+
}
297+
294298
// Don't show the connect notice anywhere but the plugins.php after activating
295299
if ( 'plugins' !== $current_screen->base && 'dashboard' !== $current_screen->base ) {
296300
add_action( 'redux_admin_notices_run', array( $this, 'panel_admin_notice' ), 100, 2 );
297301
add_action( 'admin_head', array( $this, 'admin_head' ) );
302+
298303
return;
299304
}
300305

0 commit comments

Comments
 (0)