Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/09/2011 08:36:05 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Prevent "create topic" form from showing if current user cannot create topics or there are no public forums to create topics in. Fixes #1443.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-topic.php

    r3105 r3127  
    1313?>
    1414
    15 <?php if ( ( bbp_is_topic_edit() && current_user_can( 'edit_topic', bbp_get_topic_id() ) ) || current_user_can( 'publish_topics' ) || ( bbp_allow_anonymous() && !is_user_logged_in() ) ) : ?>
     15<?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
    1616
    17     <?php if ( ( !bbp_is_forum_category() && ( !bbp_is_forum_closed() || current_user_can( 'edit_forum', bbp_get_topic_forum_id() ) ) ) || bbp_is_topic_edit() ) : ?>
     17    <?php if ( bbp_current_user_can_create_topic_in_forum() ) : ?>
    1818
    1919        <div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
Note: See TracChangeset for help on using the changeset viewer.