I have this code
add_action('admin_enqueue_scripts', 'my_admin_scripts_method');
function my_admin_scripts_method() {
wp_enqueue_script('admin-control2', plugin_dir_url( __FILE__ ) .'js/admin_control.js',array(), PLUGIN_VERSION, true);
}
When I'm logged in /wp-admin with an user that is administrator the js file is enqueued. However if I switch to an user that is editor role the js file is not included.
How can i fix this ? Is this the default behavior ?