Only show multisite upload space when user has upload_files, rather than edit_posts. props johnbillion, fixes #17510.
git-svn-id: https://develop.svn.wordpress.org/trunk@17973 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
15a8ad08c9
commit
9e71942528
@ -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…
x
Reference in New Issue
Block a user