Please add following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_current_user_can', function( $can, $cap, $id ){
if ( 'access_directory' != $cap || ! is_user_logged_in() || fep_is_user_blocked() ) {
return $can;
}
if( array_intersect( [ 'administrator', 'editor' ], wp_get_current_user()->roles ) ){
return true;
}
return false;
}, 10, 3);