You can control the access privileges using the flamingo_map_meta_cap
filter hook. As Flamingo requires the flamingo_edit_inbound_message
and flamingo_edit_inbound_messages
capabilities when you access the Inbound Messages screen, and the Editor and higher roles have the edit_pages
capability, you can allow Editor users to access the Inbound Messages screen by adding custom code like the following:
add_filter( 'flamingo_map_meta_cap', function( $meta_caps ) {
$meta_caps = array_merge( $meta_caps, array(
'flamingo_edit_inbound_message' => 'edit_pages',
'flamingo_edit_inbound_messages' => 'edit_pages',
) );
return $meta_caps;
} );