Download Monitor
Plugin admin access to Editor or other user levels? (2 posts)

  1. quietcity
    Posted 5 years ago #

    I need to open up the plugin admin to the "Editor" user level. The plugin is currently only available to "Administrator" user level. I know that I can modify the code in "download-monitor/wp-download_monitor.php" to fix this:

    if (is_object($wp_roles)) :
    		$wp_roles->add_cap( 'administrator', 'user_can_config_downloads' );
    		$wp_roles->add_cap( 'editor', 'user_can_edit_downloads' );
    		$wp_roles->add_cap( 'editor', 'user_can_add_new_download' );
    		$wp_roles->add_cap( 'editor', 'user_can_view_downloads_log' );

    Having done that and seeing that it works, the problem is that I will have to manually edit this file everytime the plugin is updated.

    Can the developers consider adding an admin option to set a user level access so this doesn't have to be done manually with every update? That would make this plugin 10x better, in my opinion.



  2. quietcity
    Posted 5 years ago #

    I've found a better and more future-compliant work-around with two plugins. First I installed "Admin Menu Editor" which helped with some tidying up of the admin menu as well. I also installed "User Role Editor" and modified the "Editor" role. Now using custom settings on the menu, I can have the "Downloads" options available to Editors, or any other user level.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Download Monitor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic