We don’t do customizations, you can try finding an expert at http://geodirectoryexperts.com/
But one of the developers wrote this snippet you can use in the Code Snippets plugin, see https://wpgeodirectory.com/docs/useful-plugins/#snippets
function _uwp_custom_profile_access( $access, $user ) {
if ( ! ( current_user_can('manage_options') || ( !empty( $user ) && get_current_user_id() == $user->ID ) ) ) {
$access = false;
}
return $access;
}
add_filter( 'uwp_profile_access', '_uwp_custom_profile_access', 10, 2 );
function _uwp_custom_profile_access_denied( $user ) {
?>
<div><p><?php echo __( 'You are not allowed to view this profile!' ); ?></p></div>
<?php
}
add_action( 'uwp_profile_access_denied', '_uwp_custom_profile_access_denied', 10, 1 );
Adjust as required. Thanks