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' ); endif;
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.
- The topic ‘[Plugin: WordPress Download Monitor] Plugin admin access to Editor or other user levels?’ is closed to new replies.