summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/inline-uploading.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-01-20 17:03:17 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-01-20 17:03:17 +0000
commitde23735d75bd523cea68e43fc1ef717eb440d069 (patch)
tree324aec89bd3e3ed45a3976d526b6abd50bb5d230 /wp-inst/wp-admin/inline-uploading.php
parent42ad115c5b6e5d184a54f825a5c24b19a3b30fb3 (diff)
downloadwordpress-mu-de23735d75bd523cea68e43fc1ef717eb440d069.tar.gz
wordpress-mu-de23735d75bd523cea68e43fc1ef717eb440d069.tar.xz
wordpress-mu-de23735d75bd523cea68e43fc1ef717eb440d069.zip
WP Merge
Removed Legacy Code (Thanks IT Damager) createBlog - only backup roles class if it exists! git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@507 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/inline-uploading.php')
-rw-r--r--wp-inst/wp-admin/inline-uploading.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-inst/wp-admin/inline-uploading.php b/wp-inst/wp-admin/inline-uploading.php
index 4b9c30e..c6260e9 100644
--- a/wp-inst/wp-admin/inline-uploading.php
+++ b/wp-inst/wp-admin/inline-uploading.php
@@ -4,8 +4,8 @@ require_once('admin.php');
header('Content-Type: text/html; charset=' . get_option('blog_charset'));
-if (!current_user_can('edit_posts'))
- die(__('You do not have permission to edit posts.'));
+if (!current_user_can('upload_files'))
+ die(__('You do not have permission to upload files.'));
$wpvarstoreset = array('action', 'post', 'all', 'last', 'link', 'sort', 'start', 'imgtitle', 'descr', 'attachment');