Changeset 3605 for branches/2.0/bbp-includes/bbp-core-compatibility.php
- Timestamp:
- 11/14/2011 03:33:48 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/bbp-includes/bbp-core-compatibility.php
r3602 r3605 1571 1571 if ( !empty( $is_edit ) ) { 1572 1572 1573 // Only allow super admins on multisite to edit every user.1574 if ( !is_user_logged_in() || ( is_multisite() && !current_user_can( 'manage_network_users' ) && ( $user->ID != bbp_get_current_user_id() ) && !apply_filters( 'enable_edit_any_user_configuration', true ) ) || !current_user_can( 'edit_user', $user->ID ) ) {1575 wp_die( __( 'You do not have the permission to edit this user.', 'bbpress' ) );1576 }1577 1578 1573 // We are editing a profile 1579 1574 $posts_query->bbp_is_single_user_edit = true; … … 1631 1626 // Topic/Reply Edit Page 1632 1627 } elseif ( !empty( $is_edit ) ) { 1633 1634 // Bail from edit if user is not logged in1635 if ( !is_user_logged_in() ) {1636 return;1637 }1638 1628 1639 1629 // We are editing a topic
Note: See TracChangeset
for help on using the changeset viewer.