Home › Forums › Front End PM PRO › Unable to submit message on latest version › Reply To: Unable to submit message on latest version
Shamim,
Thanks for your help, all looks good and we are now on version 10.2.1.
I have a bypass setup to allow users to still send to a group even if the original or anybody deletes themselves from a group message.
Is the code below now defunct and included in this version?
// FEPM allow a group to carry on replying in that group if one user deletes (completes housekeeping) from a group message.
add_filter( 'fep_current_user_can', function( $can, $cap, $id ){
if( 'send_reply' !== $cap || $can ) {
return $can;
}
if( ! is_user_logged_in() || fep_is_user_blocked() ) {
return $can;
}
if( ! $id || fep_get_message_status( $id ) !== 'publish' ) {
return $can;
}
if ( in_array( get_current_user_id(), fep_get_participants( $id ) ) ) {
$can = true;
}
return $can;
}, 10, 3);