Ticket #5932: 5932.01.patch
File 5932.01.patch, 1.1 KB (added by , 9 years ago) |
---|
-
src/bp-members/bp-members-admin.php
105 105 $this->js_url = trailingslashit( $this->admin_url . 'js' ); // Admin CSS URL 106 106 107 107 // Capability depends on config 108 $this->capability = bp_core_do_network_admin() ? 'manage_network_ options' : 'manage_options';108 $this->capability = bp_core_do_network_admin() ? 'manage_network_users' : 'edit_users'; 109 109 110 110 // The Edit Profile Screen id 111 111 $this->user_page = ''; … … 144 144 145 145 // When BuddyPress is not network activated, only Super Admin can moderate signups 146 146 if ( ! empty( $this->subsite_activated ) ) { 147 $this->capability = 'manage_network_ options';147 $this->capability = 'manage_network_users'; 148 148 } 149 149 } 150 150 … … 1867 1867 * @param string $action Delete, activate, or resend activation link. 1868 1868 */ 1869 1869 public function signups_admin_manage( $action = '' ) { 1870 if ( ! is_super_admin() || empty( $action ) ) {1870 if ( ! current_user_can( $this->capability ) || empty( $action ) ) { 1871 1871 die( '-1' ); 1872 1872 } 1873 1873