Skip to content

Commit

Permalink
fix: hide the welcome notice for users who lack install_plugins permi…
Browse files Browse the repository at this point in the history
…ssions
  • Loading branch information
girishpanchal30 committed Sep 9, 2024
1 parent 9501fd3 commit 3fb7f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/core/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public function admin_notice() {
return;
}

if ( ! current_user_can( 'manage_options' ) ) {
if ( ! current_user_can( 'install_plugins' ) ) {
return;
}

Expand Down

0 comments on commit 3fb7f47

Please sign in to comment.