Skip to:
Content

bbPress.org

Changeset 6223


Ignore:
Timestamp:
01/12/2017 11:08:35 AM (8 years ago)
Author:
johnjamesjacoby
Message:

Moderators: Allow moderators to see topic/reply author IP addresses.

Fixes #2975.

Location:
trunk/src/templates/default/bbpress
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/content-single-topic-lead.php

    r5770 r6223  
    5252                <?php bbp_topic_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>
    5353
    54                 <?php if ( bbp_is_user_keymaster() ) : ?>
     54                <?php if ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
    5555
    5656                    <?php do_action( 'bbp_theme_before_topic_author_admin_details' ); ?>
  • trunk/src/templates/default/bbpress/loop-single-reply.php

    r5770 r6223  
    4141        <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>
    4242
    43         <?php if ( bbp_is_user_keymaster() ) : ?>
     43        <?php if ( current_user_can( 'moderate', bbp_get_reply_id() ) ) : ?>
    4444
    4545            <?php do_action( 'bbp_theme_before_reply_author_admin_details' ); ?>
Note: See TracChangeset for help on using the changeset viewer.