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

git-svn-id: http://svn.automattic.com/wordpress/trunk@7660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-04-14 16:57:29 +00:00
parent b9b5291c18
commit 4c9d2e9dfa
2 changed files with 3 additions and 1 deletions

View File

@@ -378,6 +378,7 @@ foreach ( $wp_user_search->get_results() as $userid ) {
?>
<br class="clear" />
<?php if ( current_user_can('create_users') ) { ?>
<div class="wrap">
<h2 id="add-new-user"><?php _e('Add New User') ?></h2>
@@ -452,6 +453,7 @@ foreach ( $wp_user_search->get_results() as $userid ) {
</div>
<?php
}
break;
} // end of the $action switch