diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 9c6a664bf0..cfa45f2967 100644
--- a/wp-includes/general-template.php
+++ b/wp-includes/general-template.php
@@ -1483,6 +1483,9 @@ function the_editor($content, $id = 'content', $prev_id = 'title', $media_button
if (($rows < 3) || ($rows > 100))
$rows = 12;
+ if ( !current_user_can( 'upload_files' ) )
+ $media_buttons = false;
+
$richedit = user_can_richedit();
$rows = "rows='$rows'";