Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/27/2011 07:37:50 AM (15 years ago)
Author:
johnjamesjacoby
Message:

More adjustments for theme compatability layer. Rejigs the bbp_load_template function to also have theme compatability. Introduces bbp_user_can_view_forum() function as a method to check the scope of a users ability to view private/hidden forums, topics, and replies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/single-forum.php

    r3032 r3057  
    1919                                <?php while ( have_posts() ) : the_post(); ?>
    2020
    21                                         <?php if ( bbp_is_forum_public( bbp_get_forum_id(), false ) || current_user_can( 'read_private_forums' ) ) : ?>
     21                                        <?php if ( bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) ) : ?>
    2222
    2323                                                <div id="forum-<?php bbp_forum_id(); ?>" class="bbp-forum-info">
Note: See TracChangeset for help on using the changeset viewer.