WordPress.org

Plugin Directory

Changeset 355399


Ignore:
Timestamp:
03/04/11 20:23:24 (3 years ago)
Author:
JustinSainton
Message:

Updated Dashboard Widgets function check user role - still seemed to show Sales Info for Subscribers - no bueno :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-e-commerce/branches/3.8-development/wpsc-admin/admin.php

    r355098 r355399  
    560560function wpsc_dashboard_widget_setup() { 
    561561    global $current_user; 
    562     get_currentuserinfo(); 
    563     if ( is_admin() ) { 
     562 
     563    if ( is_admin() && current_user_can( 'manage_options' ) ) { 
    564564        $version_identifier = WPSC_VERSION . "." . WPSC_MINOR_VERSION; 
    565565        // Enqueue the styles and scripts necessary 
Note: See TracChangeset for help on using the changeset viewer.