• Resolved Jonathan

    (@bionicsquid)


    Hi. I’m having an issue where PublishPress Permissions is causing the filter that decides whether a user can view a bbPress forum to return true, wrongly, when the check is run from the back-end. The call below returns true when it should be false when run from the back-end (as an admin user different from ID 18) and false when run as the user 18 on the front-end (expected). This is causing unexpected behavior in that non-forum members are receiving notifications of forum activity.

    $user_id = 18;
    $forum_id = 6663;
    echo apply_filters( ‘bbp_user_can_view_forum’, $retval=true, $forum_id, $user_id );

    Can you suggest a resolution?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Call returns different results on back end vs front re bbPress forums’ is closed to new replies.