WordPress.org

Make WordPress Core

Changeset 7660


Ignore:
Timestamp:
04/14/08 16:57:29 (6 years ago)
Author:
ryan
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r7645 r7660  
    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'); 
  • trunk/wp-admin/users.php

    r7577 r7660  
    379379 
    380380<br class="clear" /> 
     381<?php if ( current_user_can('create_users') ) { ?> 
    381382 
    382383<div class="wrap"> 
     
    453454 
    454455<?php 
     456} 
    455457break; 
    456458 
Note: See TracChangeset for help on using the changeset viewer.