Top admin tool bar not displaying for “Editor” user role

Looks like i found the piece of code causing the issue :

function remove_admin_bar() {

if (! current_user_can(‘administrator’, ‘editor’) && !is_admin() && !is_editor()) {
show_admin_bar(false);
}
}
add_action(‘after_setup_theme’, ‘remove_admin_bar’);

I switched show_admin_bar(false);

to

show_admin_bar(true);