Thanks for your advice. In fact it is a hook that I fire of with this check. It looks like this (an example, the check is done in two places for different user levels and in two different plugins)
// Down locks me out of admin area if network activated...
if (!(current_user_can(‘manage_options’))) {
add_action( ‘admin_menu’, ‘ngo_remove_eo’ );
}
and the function is;
function ngo_remove_eo() {
remove_menu_page( 'edit.php?post_type=event' );
}
I changed it to this;
add_action( 'wp_loaded', 'eongo_cleanup' );
function eongo_cleanup() {
if (!(current_user_can('manage_options'))) {
add_action( 'admin_menu', 'ngo_remove_eo' );
}
if(!is_super_admin()){
add_action( 'admin_menu', 'ngo_remove_eosubmenu', 99 );
add_action( 'do_meta_boxes', 'remove_eopost_custom_fields' );
}
}
and now it works 🙂 Thanks a lot Dave.