From: Chuck Scott Date: Fri, 13 Jan 2017 21:19:05 +0000 (-0500) Subject: Fixed availability of bandwidth menu to editors. X-Git-Tag: v1.0.10^0 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=408dd3ea42ed51b7f66fea2372478878656efbf9;p=WP-Plugins%2Fglm-serverstats.git Fixed availability of bandwidth menu to editors. --- diff --git a/index.php b/index.php index 3d301db..34363a9 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM ServerStats - Stand Alone * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Server Stats Display. - * Version: 1.0.9 + * Version: 1.0.10 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,10 +19,10 @@ * @package glmServerStats * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.9 + * @version 1.0.10 */ -define('GLM_SERVERSTATS_PLUGIN_VERSION', '1.0.9'); +define('GLM_SERVERSTATS_PLUGIN_VERSION', '1.0.10'); // Check that we're being called by WordPress. if (!defined('ABSPATH')) { diff --git a/setup/adminMenus.php b/setup/adminMenus.php index c46cc8a..1f074e6 100644 --- a/setup/adminMenus.php +++ b/setup/adminMenus.php @@ -13,12 +13,11 @@ */ $mainServerStatsMenuSlug = 'glm-server-stats-main-menu'; - if (current_user_can('editor') || current_user_can('administrator')) { add_menu_page( "GLM Bandwidth", 'GLM Bandiwdth', - 'manage_options', + 'edit_pages', $mainServerStatsMenuSlug, function() { serverStatsController('adminServerStats');