WordPress.org

Ready to get started?Download WordPress

Forums

WP Hide Dashboard
Media Tab still visible (8 posts)

  1. neononcon
    Member
    Posted 3 years ago #

    This plugin is awesome and works very well! Thank you so much for developing a straight forward, clean and simple plugin to hide the dashboard.

    Quick question. The media tab is still visible. Is it supposed to be like that or is there a way to only have the profile tab visible? Subscribers should not be allowed to upload media or see the media library =(

    http://wordpress.org/extend/plugins/wp-hide-dashboard/

  2. Kim Parsell
    Volunteer Moderator
    Plugin Author

    Posted 3 years ago #

    @neononcon: The Media tab is not visible to Subscribers by default in WordPress - only the Dashboard and Profile tabs are on for Subscribers. If it is appearing on your install, then another plugin is causing this.

    Disable all plugins (except for Akismet and WP Hide Dashboard) and see if the Media tab disappears. If it does, then you need to figure out what plugin is causing it to show up. To do that, reactivate 1 plugin at a time, checking to see if the Media tab is back after each one. When it reappears, make a note of the plugin and post your results back here please.

  3. neononcon
    Member
    Posted 3 years ago #

    @kpdesign Thanks I found that it was being caused by uCan Post plugin.

    In the admin there is an option for:

    Allow uploads on sumbission:
    NOTE: For security reasons, only registered members can upload files

    It was activated just to test and ever since turning that option on, the media tab exists in the dashboard even when unchecked.

    I know this is nothing to do with WP Hide Dashboard at least now. Thanks for the great plugin and service.

  4. cartpauj
    Member
    Posted 3 years ago #

    It has to be visible to allow subscribers to upload media files.

  5. neononcon
    Member
    Posted 3 years ago #

    @cartpauj hi thanks for answering in this thread. It is understandable that the media tab should be visible when the option for allowing registered subscribers to upload files is checked on. But when that option is unchecked and off, it should no longer be visible. How can this be fixed? This is conflicting with the purpose of using WP Hide Dashboard.

  6. mickif
    Member
    Posted 2 years ago #

    hi, i am having the same problem. was there a solution? thank you!

  7. ninetienne
    Member
    Posted 2 years ago #

    Any solution?

  8. cartpauj
    Member
    Posted 2 years ago #

    If you do not want users to have access to media, please find lines in the ucan-post-class.php file:

    $role = get_role('contributor');
          $role->add_cap('upload_files');
          $role = get_role('subscriber');
          $role->add_cap('upload_files');
          $role->add_cap('unfiltered_html');

    Change them to this:

    $role = get_role('contributor');
          $role->remove_cap('upload_files');
          $role = get_role('subscriber');
          $role->remove_cap('upload_files');
          $role->remove_cap('unfiltered_html');

    After changing these lines you will need to de-activate and re-activate the plugin before it will take affect.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic