Skip to:
Content

BuddyPress.org

Ticket #5932: 5932.01.patch

File 5932.01.patch, 1.1 KB (added by r-a-y, 9 years ago)
  • src/bp-members/bp-members-admin.php

     
    105105                $this->js_url    = trailingslashit( $this->admin_url . 'js'  ); // Admin CSS URL
    106106
    107107                // 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';
    109109
    110110                // The Edit Profile Screen id
    111111                $this->user_page = '';
     
    144144
    145145                // When BuddyPress is not network activated, only Super Admin can moderate signups
    146146                if ( ! empty( $this->subsite_activated ) ) {
    147                         $this->capability = 'manage_network_options';
     147                        $this->capability = 'manage_network_users';
    148148                }
    149149        }
    150150
     
    18671867         * @param string $action Delete, activate, or resend activation link.
    18681868         */
    18691869        public function signups_admin_manage( $action = '' ) {
    1870                 if ( ! is_super_admin() || empty( $action ) ) {
     1870                if ( ! current_user_can( $this->capability ) || empty( $action ) ) {
    18711871                        die( '-1' );
    18721872                }
    18731873