Only show multisite upload space when user has upload_files, rather than edit_posts. props johnbillion, fixes #17510.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-05-19 17:43:19 +00:00
parent 14fd42c850
commit b101aa6781
1 changed files with 1 additions and 1 deletions

View File

@ -1120,7 +1120,7 @@ function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) {
// Display File upload quota on dashboard
function wp_dashboard_quota() {
if ( !is_multisite() || !current_user_can('edit_posts') || get_site_option( 'upload_space_check_disabled' ) )
if ( !is_multisite() || !current_user_can('upload_files') || get_site_option( 'upload_space_check_disabled' ) )
return true;
$quota = get_space_allowed();