Description:

If you have a multiauthors blog, and use the “contributor” role to moderate articles you could add this snippet to allow your users (contributors) can add also media.

By default the add post interface doesn’t include the media selection for the contributors. To do this just paste the following snippet on the theme’s function.php

The Code:

if ( current_user_can('contributor') && !current_user_can('upload_files') ) 
        add_action('admin_init', 'wpc_contributor_uploads'); 
function wpc_contributor_uploads() { 
        $contributor = get_role('contributor'); 
        $contributor->add_cap('upload_files'); 
}

Nothing else