summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-admin/upload.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-18 09:16:34 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-18 09:16:34 +0000
commit3d22aa49e07b92dab07b1f9d6a8a66fb6ab20bdc (patch)
tree1bc483947163c7351f73b2c62a69ef774e021775 /wp-inst/wp-admin/upload.php
parent9d3f6c7b7452785bd585424238dd29f9d7369480 (diff)
downloadwordpress-mu-3d22aa49e07b92dab07b1f9d6a8a66fb6ab20bdc.tar.gz
wordpress-mu-3d22aa49e07b92dab07b1f9d6a8a66fb6ab20bdc.tar.xz
wordpress-mu-3d22aa49e07b92dab07b1f9d6a8a66fb6ab20bdc.zip
Merge from WP Core.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@31 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/upload.php')
-rw-r--r--wp-inst/wp-admin/upload.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/wp-inst/wp-admin/upload.php b/wp-inst/wp-admin/upload.php
index 61c8f21..5e69388 100644
--- a/wp-inst/wp-admin/upload.php
+++ b/wp-inst/wp-admin/upload.php
@@ -5,13 +5,10 @@ $title = 'Upload Image or File';
require_once('admin-header.php');
-if ($user_level == 0) //Checks to see if user has logged in
- die (__("Cheatin' uh ?"));
-
if (!get_settings('use_fileupload')) //Checks if file upload is enabled in the config
die (__("The admin disabled this function"));
-if ( !get_settings('fileupload_minlevel') )
+if ( ! current_user_can('upload_files') )
die (__("You are not allowed to upload files"));
$allowed_types = explode(' ', "jpg jpeg png gif");