Switch cap needed for server stats.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 27 Jan 2017 19:09:47 +0000 (14:09 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 27 Jan 2017 19:09:47 +0000 (14:09 -0500)
Use the edit other pages

Gaslightify.php

index 4fa1fda..068abb4 100755 (executable)
@@ -4,7 +4,7 @@
 Plugin Name: Gaslightify
 Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
 Description: A gasline to a Wordpress website.
-Version: 1.5.5
+Version: 1.5.6
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 License: Gaslight Media
@@ -191,7 +191,7 @@ function glm_stats(){
 ';
 }
 function Gaslightify_menu() {
-    if ( current_user_can( 'edit_others_posts' ) ) {
+    if ( current_user_can( 'edit_others_pages' ) ) {
         add_menu_page('Server Stats', 'Server Stats', 'edit_posts', 'glm_stats', 'glm_stats', 'dashicons-chart-area');
         if (class_exists('Ninja_Forms')) {
             add_menu_page('Form Submissions', 'Form Submissions', 'edit_posts', 'edit.php?post_type=nf_sub', '', 'dashicons-feedback');