Fixed availability of bandwidth menu to editors. v1.0.10
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 13 Jan 2017 21:19:05 +0000 (16:19 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 13 Jan 2017 21:19:05 +0000 (16:19 -0500)
index.php
setup/adminMenus.php

index 3d301db..34363a9 100644 (file)
--- 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
  * @package glmServerStats
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @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')) {
index c46cc8a..1f074e6 100644 (file)
  */
 
 $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');