Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/22/2011 08:28:59 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Remove read_forum meta cap check from bbp_user_can_view_forum(). Fixes bug where users with no role in a multisite installation could not read public forum content.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-user-template.php

    r3165 r3200  
    10731073
    10741074    // Forum is public, and user can read forums or is not logged in
    1075     elseif ( bbp_is_forum_public( $forum_id, $check_ancestors ) && ( !is_user_logged_in() || current_user_can( 'read_forum' ) ) )
     1075    elseif ( bbp_is_forum_public ( $forum_id, $check_ancestors ) )
    10761076        $retval = true;
    10771077
Note: See TracChangeset for help on using the changeset viewer.