Make WordPress Core


Ignore:
Timestamp:
12/16/2010 09:18:28 AM (14 years ago)
Author:
nacin
Message:

Replace check_permissions() with ajax_user_can(). New method returns true/false to current_user_can(), which we then handle in admin ajax. see #15326.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-ms-users-list-table.php

    r16968 r16992  
    99class WP_MS_Users_List_Table extends WP_List_Table {
    1010
    11     function check_permissions() {
    12         if ( ! current_user_can( 'manage_network_users' ) )
    13             wp_die( __( 'You do not have permission to access this page.' ) );
     11    function ajax_user_can() {
     12        return current_user_can( 'manage_network_users' );
    1413    }
    1514
Note: See TracChangeset for help on using the changeset viewer.