Support » Plugin: bbPress Votes » bbp_participant_role no vote buttons

  • Hi.
    I’m not sure why but customers at my website (wordpress multisute) has bbp_participant_role assigned. This role don’t have read permission and is maintained by bbpress core. Plugin is checking if read permission exists and displays buttons only if it exists.
    If I manually add read permission to this role other multisite admins can’t access forum at all (404).
    Is it known issue or I need to find solution myself?
    I don’t want to edit plugin source code because next update will erase everything.

    https://wordpress.org/plugins/bbpress-votes/

Viewing 1 replies (of 1 total)
  • Thread Starter ikovalyov

    (@ikovalyov)

    add_action( ‘bbpvotes_can_user_vote_up_for_post’, ‘votes_fix’, 10, 2);
    add_action( ‘bbpvotes_can_user_vote_down_for_post’, ‘votes_fix’, 10, 2);
    function votes_fix( $can, $post_id) {
    if ($can) {
    return $can;
    }

    return current_user_can( ‘participate’, $post_id );
    }

    using it as fix for now

Viewing 1 replies (of 1 total)
  • The topic ‘bbp_participant_role no vote buttons’ is closed to new replies.