• Resolved chibanou

    (@chibanou)


    When “Viewing other BuddyPress profiles” is enable (Paid Membership Pro settings), the user cannot even access to his own profile and settings.

    How can I fix it ?

    Thanks for this great plugin !
    Regards !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chibanou

    (@chibanou)

    I have modify this lines of class-bp-restrict.php, it seems to work, what do you think about it ?

    $settings[] =   array(
                            'title' => __( 'Restrict viewing other profiles', 'bp-restrict' ),
                            'front' => __( 'View members profile', 'bp-restrict' ),
                            'name'  => 'view_profiles',
                            'condition' => 'bp_is_user()' .
                                           '&& !preg_match("/\/' . $members_slug . '\/" . bp_get_loggedin_user_username() . "/" , %current_url% )',
                    );
    • This reply was modified 6 years, 2 months ago by chibanou.
    Plugin Author SeventhQueen

    (@seventhqueen)

    Hi, sorry for the late reply, I haven’t received the notification. Will make the adjustment. Thanks for the tip.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Profile restriction issue’ is closed to new replies.