Plugin Directory

Changeset 734806


Ignore:
Timestamp:
07/01/2013 09:13:41 PM (13 years ago)
Author:
randyjensen
Message:

only admins and authors can edit charts

Location:
rj-quickcharts/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rj-quickcharts/trunk/README.txt

    r734794 r734806  
    77Requires at least: 3.3
    88Tested up to: 3.5
    9 Stable tag: 0.4.1
     9Stable tag: 0.4.2
    1010
    1111Create incredible HTML5/JavaScript charts right inside WordPress with a few clicks.
     
    4444== Changelog ==
    4545
     46= 0.4.2 =
     47* Only Admins and Authors can edit charts now
     48
    4649= 0.4.1 =
    4750* Pie chart support added
  • rj-quickcharts/trunk/menu/init.php

    r727984 r734806  
    1212        public function init()
    1313        {
    14             add_action('admin_menu', array(&$this, 'register_my_custom_menu_page'));
    15             add_action('admin_footer', array(&$this, 'css_for_rjqc_admin_menu'));
     14            if ( current_user_can('edit_others_posts') ) {
     15                add_action('admin_menu', array(&$this, 'register_my_custom_menu_page'));
     16                add_action('admin_footer', array(&$this, 'css_for_rjqc_admin_menu'));
     17            }
    1618        }
    1719
  • rj-quickcharts/trunk/rj_charts.php

    r734794 r734806  
    44Plugin URI: http://www.randyjensen.com
    55Description: Easily create charts for your WordPress site. Line charts, bar charts and pie charts currently supported.
    6 Version: 0.4.1
     6Version: 0.4.2
    77Author: Randy Jensen
    88Author URI: http://www.randyjensen.com
     
    1515    global $table_name;
    1616
    17     $rjqc_db_version = '0.4.1';
     17    $rjqc_db_version = '0.4.2';
    1818    $table_name = $wpdb->prefix . 'rj_quickcharts';
    1919
Note: See TracChangeset for help on using the changeset viewer.