Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I think this could be a simple answer but I can't really find.

except administrator, users are not able to see "media library".

Is there anyway to setup to show (display on dashboard) media library for non-admin users? I may need give access by user-type or something else.

then they see what they uploaded.

 function my_files_only( $wp_query ) {
if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/upload.php' ) !== false ) {
    //if ( !current_user_can( 'level_5' ) ) {
        global $current_user;
        $wp_query->set( 'author', $current_user->id );
    //}
}
 }
   add_filter('parse_query', 'my_files_only' );
share|improve this question
    
I switch to author user and see Media Library just fine?.. –  Rarst Nov 27 '13 at 14:34
    
no my user can not see the menu. do i need to set it up something? –  pulla Nov 27 '13 at 15:35
2  
What you describe is non-standard. (I think that is the point that @Rarst was making.) You don't need to set up anything but something has already altered default behavior-- a plugin or a theme, probably. You need to find out what. –  s_ha_dum Nov 27 '13 at 16:02
    
thanks now I understand, what I need to set it up. I modified roles and capability and works great. –  pulla Nov 28 '13 at 5:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.