Changeset 3607 for branches/plugin/bbp-includes/bbp-core-compatibility.php
- Timestamp:
- 11/14/2011 03:50:25 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-core-compatibility.php
r3601 r3607 1685 1685 if ( !empty( $is_edit ) ) { 1686 1686 1687 // Only allow super admins on multisite to edit every user.1688 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 ) ) {1689 wp_die( __( 'You do not have permission to edit this user.', 'bbpress' ) );1690 }1691 1692 1687 // We are editing a profile 1693 1688 $posts_query->bbp_is_single_user_edit = true; … … 1748 1743 // Topic/Reply Edit Page 1749 1744 } elseif ( !empty( $is_edit ) ) { 1750 1751 // Bail from edit if user is not logged in1752 if ( !is_user_logged_in() )1753 return;1754 1745 1755 1746 // Get the post type from the main query loop
Note: See TracChangeset
for help on using the changeset viewer.