Make WordPress Core


Ignore:
Timestamp:
04/14/2008 04:56:55 PM (16 years ago)
Author:
ryan
Message:

Check create_users cap instead of edit_users wgen adding/inserting users. Props imwebgefunden. fixes #6662 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-admin/admin-ajax.php

    r7509 r7659  
    435435case 'add-user' :
    436436    check_ajax_referer( $action );
    437     if ( !current_user_can('edit_users') )
     437    if ( !current_user_can('create_users') )
    438438        die('-1');
    439439    require_once(ABSPATH . WPINC . '/registration.php');
Note: See TracChangeset for help on using the changeset viewer.