Skip to:
Content

BuddyPress.org

Ticket #7615: 7615.diff

File 7615.diff, 622 bytes (added by boonebgorges, 7 years ago)
  • src/bp-messages/bp-messages-screens.php

    diff --git src/bp-messages/bp-messages-screens.php src/bp-messages/bp-messages-screens.php
    index 9cb61afc3..84961059e 100644
    function messages_screen_conversation() { 
    129129        }
    130130
    131131        // No access.
    132         if ( ! messages_check_thread_access( $thread_id ) && ! bp_current_user_can( 'bp_moderate' ) ) {
     132        if ( ( ! messages_check_thread_access( $thread_id ) || ! bp_is_my_profile() ) && ! bp_current_user_can( 'bp_moderate' ) ) {
    133133                // If not logged in, prompt for login.
    134134                if ( ! is_user_logged_in() ) {
    135135                        bp_core_no_access();