Making WordPress.org

Changeset 9476


Ignore:
Timestamp:
02/06/2020 03:21:28 AM (7 years ago)
Author:
dd32
Message:

Support Forums: Don't show user term subscriptions to other users.

This wasn't intentional, but it was possible to find another users term/plugin/theme subscriptions.

See #4981.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-term-subscription/inc/class-plugin.php

    r8694 r9476  
    392392                        return;
    393393                }
     394
     395                // Don't display the subscriptions unless it's the current user, or they can edit that user.
     396                if ( ! bbp_is_user_home() && ! current_user_can( 'edit_user', bbp_get_displayed_user_id() ) ) {
     397                        return;
     398                }
     399
    394400                $terms = self::get_user_taxonomy_subscriptions( $user_id, $this->taxonomy );
    395401                ?>
Note: See TracChangeset for help on using the changeset viewer.