Plugin is blocking access to users without manage_options capability
-
Plugin is blocking access to /wp-admin/profile.php and /wp-admin/ in general to users without manage_options capability (e.g. Authors, Contributors etc.)
Perhaps related to the vulnerability fix:
https://ww.wp.xz.cn/support/topic/vulnerability-in-all-versions/$this->loader->add_action( 'admin_menu', $plugin_admin, 'display_admin_page' );
public function display_admin_page(){
if (!current_user_can('manage_options')) {
wp_die(esc_html__('You do not have sufficient permissions to access this page.'));
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Plugin is blocking access to users without manage_options capability’ is closed to new replies.