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:
parent
14fd42c850
commit
b101aa6781
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue