From 3d22aa49e07b92dab07b1f9d6a8a66fb6ab20bdc Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 18 Jul 2005 09:16:34 +0000 Subject: Merge from WP Core. git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@31 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-admin/upload.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'wp-inst/wp-admin/upload.php') 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"); -- cgit